sherjilozair / char-rnn-tensorflow

Multi-layer Recurrent Neural Networks (LSTM, RNN) for character-level language models in Python using Tensorflow
MIT License
2.64k stars 959 forks source link

problem with --init_from #95

Closed xwzy closed 7 years ago

xwzy commented 7 years ago

When I use --init_from=./save to restore my model, it starts to init a new model, is there anything wrong in my command?

python3 train.py --data_dir=./data/mydata --init_from=./save

xwzy commented 7 years ago

If I only use --init_from=./save output is: loading preprocessed files Traceback (most recent call last): File "train.py", line 140, in main() File "train.py", line 55, in main train(args) File "train.py", line 82, in train assert saved_chars==data_loader.chars, "Data and loaded model disagree on character set!" AssertionError: Data and loaded model disagree on character set!

xwzy commented 7 years ago

I understand what happened!

yashjakhotiya commented 6 years ago

Can you please explain how did you solve this issue?