You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I make predictions with your model from checkpoints/USPTO50K_typed_checkpoint.pt ?
I've made all the steps before bash train.sh
P.S
I try to use them with script translate.sh from /OpenNMT-py/script/USPTO50K-aug-typed/translate.sh
By changing the path to weights, but it gives me an error: Traceback (most recent call last): File "../../onmt/bin/translate.py", line 52, in <module> main() File "../../onmt/bin/translate.py", line 48, in main translate(opt) File "../../onmt/bin/translate.py", line 18, in translate translator = build_translator(opt, report_score=True) File "/raid/eprosvirin/anaconda3/envs/retroxpert/lib/python3.6/site-packages/onmt/translate/translator.py", line 28, in build_translator fields, model, model_opt = load_test_model(opt) File "/raid/eprosvirin/anaconda3/envs/retroxpert/lib/python3.6/site-packages/onmt/model_builder.py", line 97, in load_test_model model_opt = ArgumentParser.ckpt_model_opts(checkpoint['opt']) KeyError: 'opt'
The text was updated successfully, but these errors were encountered:
How can I make predictions with your model from
checkpoints/USPTO50K_typed_checkpoint.pt
?I've made all the steps before
bash train.sh
P.S
I try to use them with script translate.sh from
/OpenNMT-py/script/USPTO50K-aug-typed/translate.sh
By changing the path to weights, but it gives me an error:
Traceback (most recent call last): File "../../onmt/bin/translate.py", line 52, in <module> main() File "../../onmt/bin/translate.py", line 48, in main translate(opt) File "../../onmt/bin/translate.py", line 18, in translate translator = build_translator(opt, report_score=True) File "/raid/eprosvirin/anaconda3/envs/retroxpert/lib/python3.6/site-packages/onmt/translate/translator.py", line 28, in build_translator fields, model, model_opt = load_test_model(opt) File "/raid/eprosvirin/anaconda3/envs/retroxpert/lib/python3.6/site-packages/onmt/model_builder.py", line 97, in load_test_model model_opt = ArgumentParser.ckpt_model_opts(checkpoint['opt']) KeyError: 'opt'
The text was updated successfully, but these errors were encountered: