main.py运行报错
Opened this issue · 0 comments
iamxufan commented
clone到本地后运行main.py后报错:
Traceback (most recent call last):
File "C:/Users/lt/Desktop/project/seq2seq_chatbot_with_torch-master/main.py", line 6, in <module>
from modules import *
AttributeError: module 'modules' has no attribute 'translate'
尝试将modules.py中__all__ = ["Encoder", "Decoder", "train", "translate"]
中的translate删除后运行报错
C:\Users\lt\Anaconda3\python.exe C:/Users/lt/Desktop/project/seq2seq_chatbot_with_torch-master/main.py
usage: main.py [-h] [--mode {train,evaluate}] [--num_epochs NUM_EPOCHS]
[--embed_size EMBED_SIZE] [--num_hiddens NUM_HIDDENS]
[--num_layers NUM_LAYERS] [--drop_prob DROP_PROB]
[--attention_size ATTENTION_SIZE] [--lr LR] --save_every
SAVE_EVERY [--load_model_dir LOAD_MODEL_DIR]
main.py: error: the following arguments are required: --save_every