aac_metrics.classes.spice module¶
- class SPICE(
- return_all_scores: bool = True,
- *,
- cache_path: str | Path | None = None,
- java_path: str | Path | None = None,
- tmp_path: str | Path | None = None,
- n_threads: int | None = None,
- java_max_memory: str = '8G',
- timeout: None | int | Iterable[int] = None,
- separate_cache_dir: bool = True,
- use_shell: bool | None = None,
- verbose: int = 0,
Bases:
AACMetric[tuple[SPICEScores,SPICEScores] |Tensor]Semantic Propositional Image Caption Evaluation class.
For more information, see
spice().- compute() tuple[SPICEScores, SPICEScores] | Tensor[source]¶