I see in pyproject.toml you have torchmetrics>=1.3.1. Given this is not pinned to an exact version, if a new env is created the latest v1.4.0.post0 is used and this breaks run_generation.py.
Changing the import from torchmetrics.multimodal import CLIPScore to be from torchmetrics.multimodal.clip_score import CLIPScore solves this issue.
Firstly, thank you for releasing an amazing repo.
I see in
pyproject.toml
you havetorchmetrics>=1.3.1
. Given this is not pinned to an exact version, if a new env is created the latest v1.4.0.post0 is used and this breaksrun_generation.py
.Changing the import
from torchmetrics.multimodal import CLIPScore
to befrom torchmetrics.multimodal.clip_score import CLIPScore
solves this issue.I'm happy to raise a PR if that's helpful.