Skip to content

Conversation

@mtanti
Copy link

@mtanti mtanti commented Dec 2, 2018

I have added the Word Mover's Distance metric that was introduced by Mert Kilickaya et al. in their paper "Re-evaluating Automatic Metrics for Image Captioning". I believe this will be a useful addition to the standard evaluation toolkit just like SPICE.

Signed-off-by: mtanti [email protected]

score_set = {}
for category,score_tuple in imgId_to_scores[image_id].iteritems():
for category,score_tuple in imgId_to_scores[image_id].items():
score_set[category] = {k: self.float_convert(v) for k, v in score_tuple.items()}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

score_set[category] = {k: self.float_convert(v) for k, v in list(score_tuple.items())}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants