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

The model hallucinates blank images and creates output out of thin air #152

Open
SleepEarlyLiveLong opened this issue Oct 14, 2024 · 0 comments

Comments

@SleepEarlyLiveLong
Copy link

SleepEarlyLiveLong commented Oct 14, 2024

When using the ParseQ model for inference, if a blank image is input, the output content is out of thin air.
image

To solve this problem, I generated 10,000 blank images of varying lengths and set their labels to a single space ‘ ’, but these data were ignored when finetuning the model:

# We filter out samples which don't contain any supported characters

image

How can I solve this problem?
Should I simply set remove_whitespace to false?
For blank images of varying lengths, should I set their labels to a single space or to different numbers of spaces depending on the length of the image?

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