show_attend_and_tell_pytorch
show_attend_and_tell_pytorch copied to clipboard
Can't get attribute 'Vocabulary'
when I train this like 'python main.py' it will return with the error as the following:
Traceback (most recent call last): File "main.py", line 298, in
main(args) File "main.py", line 57, in main vocab = pickle.load(f) AttributeError: Can't get attribute 'Vocabulary' on <module 'main' from 'main.py'>
I have found nothing to resolve it
To quickly fix this bug, you could add this line at the top of main.py
from prepro import *
Or you could reformat the code, such as putting the code related to the vocab
to a new file vocab.py
.
Thanks a lot for your reply, it have got resolved.
@L0ittle, hello, how did you solved it? can you tell me what do you do? thanks !