Seq2Seq-Vis
Seq2Seq-Vis copied to clipboard
error when prepare own model
Hi,
When I used your modified opennmt to prepare my model, I called like this:
python extract_context.py -src s2s/src-train.txt -tgt s2s/tgt-train.txt -model s2s/demo-5.pt -batch_size 64
And I got this error:
Traceback (most recent call last):
File "extract_context.py", line 356, in
I trained my model using OpenNMT-py without your modification.
Thank you.
I am also getting the same error
That looks like there is an incopatibility with some ONMT version and our extraction. Could you give me more information? What commit did you use to train the model?
That looks like there is an incopatibility with some ONMT version and our extraction. Could you give me more information? What commit did you use to train the model?
python train.py -data data/demo -save_model demo-model -enc_layers 4 -dec_layers 4 -rnn_size 200 -epochs 2000
These are options I used.
I got ONMT from: https://github.com/OpenNMT/OpenNMT-py
I will try to use your ONMT to train and extract these days.
OpenNMT underwent a significant refactor this summer which breaks backwards compatibility in some cases. I am currently working on updating the server to work with newer versions. Until then, you can use commits around this one 3bd519070ad3b092dc081d2e72d0cd129bd085c7
.
OpenNMT underwent a significant refactor this summer which breaks backwards compatibility in some cases. I am currently working on updating the server to work with newer versions. Until then, you can use commits around this one
3bd519070ad3b092dc081d2e72d0cd129bd085c7
.
Thank you so much!