Closed huizhg closed 3 hours ago
Hi,
I am trying to get the image score from the clipscore method. But this model need a caption_list as a parameter. I tried:
metric = pyiqa.create_metric("clipscore", device=device) score = metric(image_tensor, caption_list)
But I still get this error: _AssertionError: captionlist is None
It is solved by assigning the name of the parameter like: score = metric(image_tensor, caption_list=caption_list)
score = metric(image_tensor, caption_list=caption_list)
Hi,
I am trying to get the image score from the clipscore method. But this model need a caption_list as a parameter. I tried:
But I still get this error: _AssertionError: captionlist is None