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

How can I get a longer caption output by running test.py? #21

Open
yyaauto opened this issue Aug 16, 2024 · 1 comment
Open

How can I get a longer caption output by running test.py? #21

yyaauto opened this issue Aug 16, 2024 · 1 comment

Comments

@yyaauto
Copy link

yyaauto commented Aug 16, 2024

"In config.py, we can modify the parameter max_length.
However, for my trained model, max_length can only be 26. ****
If I change it to another number, it will throw an error:
ValueError: Error when checking input: expected input_3 to have shape (26,) but got array with shape (52,)."

@kunal0230
Copy link

most probably you will need to retrain your model with the new max_length

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

2 participants