Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot test after training! #80

Open
steve3nto opened this issue Feb 13, 2018 · 1 comment
Open

Cannot test after training! #80

steve3nto opened this issue Feb 13, 2018 · 1 comment

Comments

@steve3nto
Copy link

steve3nto commented Feb 13, 2018

I trained the net for 38100 steps reaching perplexity lower than 5 and wanted to test, but when I change to test mode I get this error:

>> Mode : test

Reading model parameters from working_dir/seq2seq.ckpt-38100
Traceback (most recent call last):
  File "execute.py", line 355, in <module>
    decode()
  File "execute.py", line 228, in decode
    enc_vocab, _ = data_utils.initialize_vocabulary(enc_vocab_path)
  File "/home/stefano/Code/trueyou-app/chatbot/data_utils.py", line 97, in initialize_vocabulary
    assert len(vocab) == len(rev_vocab)
AssertionError

what is wrong with the vocab and rev_vocab? does anybody know how to fix this?

I am using python 2.7.14 and tensorflow 0.12.1, installed in an anaconda environment using pip.

@Rabisha
Copy link

Rabisha commented Mar 10, 2018

I am also getting the same error.can anyone have the complete cleanup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants