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

a question about inference, no "output_img_token" (playground.py) #13

Closed
FromA2Z opened this issue Oct 11, 2023 · 2 comments
Closed

a question about inference, no "output_img_token" (playground.py) #13

FromA2Z opened this issue Oct 11, 2023 · 2 comments

Comments

@FromA2Z
Copy link

FromA2Z commented Oct 11, 2023

Regarding the inference effect, in my experiment, there was only [IMG2] in the generated text, but not [IMG0]. I wonder if this is normal. Because [IMG0] means "output_img_id", without it you cannot enter the image generation branch. Looking forward to your answer, thankyou。
image
image

@KzZheng
Copy link
Collaborator

KzZheng commented Oct 11, 2023

Yes, the model will generate an image only when [IMG0] is predicted. This error may be caused by the newest transformers library (They update the tokenizer), Maybe you can try transformers=4.31.0. Thanks!

@FromA2Z
Copy link
Author

FromA2Z commented Oct 12, 2023

Yes, the model will generate an image only when [IMG0] is predicted. This error may be caused by the newest transformers library (They update the tokenizer), Maybe you can try transformers=4.31.0. Thanks!

Thank you for your answer. It was indeed a version problem. I changed the version of the transformer and the problem was solved.

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