We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a88a6d8 commit 0694263Copy full SHA for 0694263
eval.py
@@ -112,7 +112,9 @@
112
'coco_json': opt.coco_json,
113
'batch_size': opt.batch_size,
114
'cnn_model': opt.cnn_model})
115
- loader.ix_to_word = infos['vocab']
+# When eval using provided pretrained model, the vocab may be different from what you have in your cocotalk.json
116
+# So make sure to use the vocab in infos file.
117
+loader.ix_to_word = infos['vocab']
118
119
120
# Set sample options
0 commit comments