PromptCC icon indicating copy to clipboard operation
PromptCC copied to clipboard

OSError: [Errno 22] Invalid argument

Open Layman0527 opened this issue 1 year ago • 4 comments

作者,你好。 我在复现你的网络,train.py跑到1000iter进行验证的时候出现这个问题。 Traceback (most recent call last): File "F:/0-code/image-description/Chg2Cap-main/test.py", line 220, in main(args) File "F:/0-code/image-description/Chg2Cap-main/test.py", line 139, in main nochange_metric = get_eval_score(nochange_references, nochange_hypotheses) File "F:\0-code\image-description\Chg2Cap-main\utils.py", line 75, in get_eval_score score_i, scores_i = scorer.compute_score(ref, hypo) File "F:\0-code\image-description\Chg2Cap-main\eval_func\meteor\meteor.py", line 41, in compute_score stat = self._stat(res[i][0], gts[i]) File "F:\0-code\image-description\Chg2Cap-main\eval_func\meteor\meteor.py", line 65, in _stat self.meteor_p.stdin.write(score_line + '\n') OSError: [Errno 22] Invalid argument 请问一下你遇到过此类问题嘛?应该如何修改。 感谢。

Layman0527 avatar Dec 30 '23 12:12 Layman0527