Incorrect minimum and maximum size in tokenizer_config.json.

#3
by SSK0908 - opened

Hi, thank you for your work! I was trying out the model and facing poor performance. When I looked into further, I noticed that the processor was returning 'image_grid_thw': tensor([[ 1, 2, 2]]. Upon further investigation, I noticed that in tokenizer_config.json, min_pixels and max_pixels values are swapped. This resulted in every image being resized to 32x32 grid. Kindly do fix this value so that others may not go through the same issue.

While I did not dig deeper, my understanding is that this affects only people using transformers' version 5.x and not 4.x. However it would prove to be beneficial if you could validate the same as if the current checkpoint if trained with transformers 5.x and the current tokenizer_config, the model performance might be poorer than what it could be.

Sign up or log in to comment