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

data_loader error(AssertionError) #34

Open
ZoeSnow opened this issue May 16, 2019 · 0 comments
Open

data_loader error(AssertionError) #34

ZoeSnow opened this issue May 16, 2019 · 0 comments

Comments

@ZoeSnow
Copy link

ZoeSnow commented May 16, 2019

When I ran data_loader.py ,I got the following error:(Does anyone know how to solve this error?Thank you!)

E:\Python3.5\python.exe C:/Users/Administrator/PycharmProjects/text-to-image/data_loader.py
[TL] Creating vocabulary.
Total words: 0
Words in vocabulary: 1
WARNING:tensorflow:From C:\Users\Administrator\PycharmProjects\text-to-image\tensorlayer\nlp.py:372: FastGFile.init (from tensorflow.python.platform.gfile) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.gfile.GFile.
Wrote vocabulary file: C:\Users\Administrator\PycharmProjects\text-to-image/vocab.txt
Traceback (most recent call last):
File "C:/Users/Administrator/PycharmProjects/text-to-image/data_loader.py", line 52, in
vocab = tl.nlp.Vocabulary(VOC_FIR, start_word="", end_word="", unk_word="")
File "C:\Users\Administrator\PycharmProjects\text-to-image\tensorlayer\nlp.py", line 244, in init
assert start_word in reverse_vocab
AssertionError
Process finished with exit code 1

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

1 participant