AbrahamSanders / seq2seq-chatbot

A sequence2sequence chatbot implementation with TensorFlow.
MIT License
99 stars 56 forks source link

Error while running chat_console_best_weights_training.bat file #17

Open sheshrajkandel opened 5 years ago

sheshrajkandel commented 5 years ago

Hi Abraham, I am getting an error while running the .bat file as per your instruction Please see below screenshot for your reference.

Error1 . I am getting an error while running the chat_web_best_weights_training.bat file. Please refer below screenshot. Error2

Regards, Sheshraj

AbrahamSanders commented 5 years ago

Hi @sheshrajkandel

  1. Your first error looks like it is caused because you are trying to resume training an existing model but the size of the output layer changed. Make sure the dataset and hparams you are using don't change if you want to resume training.

  2. The second error looks like it is related to the version of flask or click. Make sure you have flask==0.12.4, click==6.7 as per the dependencies.

Let me know how it works out! Regards Abraham

AbrahamSanders commented 5 years ago

Hi again @sheshrajkandel I apologize I see you were trying to run the console chat, not resume training.

For that one, the output layer size is determined by the number of lines in shared_vocab.tsv. Did you edit this file before running the chat? If you are using the trained_model_v2 weights, try restoring the shared_vocab.tsv file from the zip into your model directory.