在跑图像翻译ImageCaptioning.pytorch-master代码时出现报错:
修改方法:
将eval.py文件中的74和75行用下面的代码替换:
if opt.dump_json == 1:
# dump the json
json.dump(predictions, open('vis/vis.json', 'w'))
在跑图像翻译ImageCaptioning.pytorch-master代码时出现报错:
修改方法:
将eval.py文件中的74和75行用下面的代码替换:
if opt.dump_json == 1:
# dump the json
json.dump(predictions, open('vis/vis.json', 'w'))