The current demos are incompatible with transformers library Version: 4.49.0.

#14
by ZhangNy - opened

The version of the transformers library is Version: 4.49.0. When running cases 1 and 2: Findings generation with or without grounding, an error occurs at the model.generate() location:
lib/python3.11/site-packages/transformers/models/llava/modeling_llava.py", line 415, in forward
image_features = self.get_image_features(
^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Maira2ForConditionalGeneration.get_image_features() got an unexpected keyword argument 'image_sizes'

Sign up or log in to comment