tgc1997 / RMN

IJCAI2020: Learning to Discretely Compose Reasoning Module Networks for Video Captioning
79 stars 12 forks source link

When I tried to run evaluatie.py it reported the function incorrectly #27

Open baiyunfan123 opened 1 year ago

baiyunfan123 commented 1 year ago

(rmn) E:\video_caption\rmn\RMN-master>python evaluate.py --dataset=msvd --model=RMN --result_dir=results/msvd_model --attention=gumbel --use_loc --use_rel --use_func --hidden_size=512 --att_size=512 --test_batch_size=2 --beam_size= 2 --eval_metric=CIDEr 335it [01:21, 4.13it/s] init COCO-EVAL scorer tokenization... Traceback (most recent call last): File "evaluate.py", line 107, in metrics = evaluate(opt, net, opt.test_range, opt.test_prediction_txt_path, reference) File "evaluate.py", line 75, in evaluate scores, sub_category_score = scorer.score(reference, prediction_json, prediction_json.keys()) File "./caption-eval\cocoeval.py", line 64, in score print('tokenization...') OSError: [WinError 1] 函数不正确。

tgc1997 commented 1 year ago

Hi, we didn't test the code on Windows, so we haven't encountered this problem

baiyunfan123 commented 1 year ago

Thank you for your reply!