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

AssertionError: error: some caption had no words? #204

Open
j2233ack opened this issue Feb 22, 2019 · 0 comments
Open

AssertionError: error: some caption had no words? #204

j2233ack opened this issue Feb 22, 2019 · 0 comments

Comments

@j2233ack
Copy link

Hi Andevani,
It's me again.
I use my corpus to make prepro.py build json and h5 files.

But this happens
Inserting the special UNK token
Assigned 10000 to val, 10000 to test.
Traceback (most recent call last):
File "prepro_utf8.py", line 240, in
Main(params)
File "prepro_utf8.py", line 173, in main
L, label_start_ix, label_end_ix, label_length = encode_captions(imgs, params, wtoi)
File "prepro_utf8.py", line 150, in encode_captions
Assert np.all(label_length > 0), 'error: some caption had no words?'
AssertionError: error: some caption had no words?

Can you help me with my doubts?

Thank you very much.

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