yufengm / Adaptive

Pytorch Implementation of Knowing When to Look: Adaptive Attention via A Visual Sentinel for Image Captioning
107 stars 42 forks source link

bug #3

Open Haoyanlong opened 6 years ago

Haoyanlong commented 6 years ago

@yufengm After one epoch, I want to calculate the METEOR score, but error as follow: computing METEOR score... Traceback (most recent call last): File "train_model.py", line 268, in main(args)
File "train_model.py", line 177, in main method_score = coco_eval(adaptive, args, epoch) File "/home1/haoyanlong/imagecaption/Adaptive_Attention/code/utils.py", line 173, in coco_eval cocoEval.evaluate() File "/home1/haoyanlong/imagecaption/Adaptive_Attention/code/coco/pycocoevalcap/eval.py", line 51, in evaluate score, scores = scorer.compute_score(gts, res) File "/home1/haoyanlong/imagecaption/Adaptive_Attention/code/coco/pycocoevalcap/meteor/meteor.py", line 38, in compute_score stat = self._stat(res[i][0], gts[i]) File "/home1/haoyanlong/imagecaption/Adaptive_Attention/code/coco/pycocoevalcap/meteor/meteor.py", line 56, in _stat self.meteor_p.stdin.write('{}\n'.format(score_line)) IOError: [Errno 32] Broken pipe