Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More evaluation methods including CIDEr, METEOR and ROUGE besides BLEU1-4 #62

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

yolo615
Copy link

@yolo615 yolo615 commented Apr 11, 2019

I use the COCO.api and change the eval.py a little to achieve evaluation using CIDEr, METEOR, ROUGE and BLEU.

The packages of all the evaluation methods are in the folder: evalfunc.

@kmario23
Copy link
Contributor

@ruizhao1997 thanks! I'm reviewing this PR. In the meantime, would it also be possible for you to incorporate SPICE as an additional eval metric? :)

@yolo615
Copy link
Author

yolo615 commented Apr 13, 2019

@sgrvinod Yes, of course. But I have been busy with other things recently. I would add the SPICE a few days later.

@kmario23
Copy link
Contributor

@ruizhao1997 that'd be great! you could also have a look at coco-caption. Specifically, pycocoevalcap where a host of common eval metrics are available.

@zyan97
Copy link

zyan97 commented Jun 23, 2020

@ruizhao1997 Hi, I try to do evaluation using metrics CIDEr, METEOR, and ROUGE. But there is something wrong with METEOR.

Traceback (most recent call last):
File "eval.py", line 200, in
score_dict = evaluate(beam_size)
File "eval.py", line 190, in evaluate
score_i, scores_i = scorer.compute_score(ref, hypo)
File "/Users/Ryan/a-PyTorch-Tutorial-to-Image-Captioning-master/evalfunc/meteor/meteor.py", line 41, in compute_score
stat = self._stat(res[i][0], gts[i])
File "/Users/Ryan/a-PyTorch-Tutorial-to-Image-Captioning-master/evalfunc/meteor/meteor.py", line 65, in _stat
self.meteor_p.stdin.write(score_line + '\n')
BrokenPipeError: [Errno 32] Broken pipe

How can I fix this problem? Thanks!

@qin79
Copy link

qin79 commented Jan 27, 2021

@ ruizhao1997您好,我尝试使用指标CIDEr,METEOR和ROUGE进行评估。但是,METEOR出了点问题。

回溯(最后最近一次调用):
文件“eval.py”,线200,在
score_dict =评估(beam_size)
文件“eval.py”,线190,在评估
score_i,scores_i = scorer.compute_score(REF,海波)
文件“ /Users/Ryan/a-PyTorch-Tutorial-to-Image-captioning-master/evalfunc/meteor/meteor.py”,第41行,位于compute_score
stat = self._stat(res [i] [0],gts [ i])
在“ _stat
self.meteor_p.stdin.write(score_line +'\ n')
BrokenPipeError:[Errno 32]管道损坏

我该如何解决这个问题?谢谢!

@ruizhao1997 Hi, I try to do evaluation using metrics CIDEr, METEOR, and ROUGE. But there is something wrong with METEOR.

Traceback (most recent call last):
File "eval.py", line 200, in
score_dict = evaluate(beam_size)
File "eval.py", line 190, in evaluate
score_i, scores_i = scorer.compute_score(ref, hypo)
File "/Users/Ryan/a-PyTorch-Tutorial-to-Image-Captioning-master/evalfunc/meteor/meteor.py", line 41, in compute_score
stat = self._stat(res[i][0], gts[i])
File "/Users/Ryan/a-PyTorch-Tutorial-to-Image-Captioning-master/evalfunc/meteor/meteor.py", line 65, in _stat
self.meteor_p.stdin.write(score_line + '\n')
BrokenPipeError: [Errno 32] Broken pipe

How can I fix this problem? Thanks!

i meet this error too.have you fixed?

@ydyrx-ldm
Copy link

@ ruizhao1997您好,我尝试使用指标CIDEr,METEOR和ROUGE进行评估。但是,METEOR出了点问题。
回溯(最后最近一次调用):
文件“eval.py”,线200,在
score_dict =评估(beam_size)
文件“eval.py”,线190,在评估
score_i,scores_i = scorer.compute_score(REF,海波)
文件“ /Users/Ryan/a-PyTorch-Tutorial-to-Image-captioning-master/evalfunc/meteor/meteor.py”,第41行,位于compute_score
stat = self._stat(res [i] [0],gts [ i])
在“ _stat
self.meteor_p.stdin.write(score_line +'\ n')
BrokenPipeError:[Errno 32]管道损坏
我该如何解决这个问题?谢谢!

@ruizhao1997 Hi, I try to do evaluation using metrics CIDEr, METEOR, and ROUGE. But there is something wrong with METEOR.
Traceback (most recent call last):
File "eval.py", line 200, in
score_dict = evaluate(beam_size)
File "eval.py", line 190, in evaluate
score_i, scores_i = scorer.compute_score(ref, hypo)
File "/Users/Ryan/a-PyTorch-Tutorial-to-Image-Captioning-master/evalfunc/meteor/meteor.py", line 41, in compute_score
stat = self._stat(res[i][0], gts[i])
File "/Users/Ryan/a-PyTorch-Tutorial-to-Image-Captioning-master/evalfunc/meteor/meteor.py", line 65, in _stat
self.meteor_p.stdin.write(score_line + '\n')
BrokenPipeError: [Errno 32] Broken pipe
How can I fix this problem? Thanks!

i meet this error too.have you fixed?

i meet this error tootoo.have you fixed?

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.

None yet

5 participants