[Bugfix] Fix wrong method name in Intern-S1 image processor (#22417)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung 2025-08-07 11:05:20 +08:00 committed by GitHub
parent 7377131a2c
commit 04cf435d95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -161,7 +161,7 @@ class InternS1ProcessingInfo(BaseProcessingInfo):
if not isinstance(processor, GotOcr2ImageProcessorFast):
raise ValueError(f'GotOcr2ImageProcessorFast is expected but got '
f'{type(processor)}')
num_image_patches = processor.get_number_of_image_tokens(
num_image_patches = processor.get_number_of_image_patches(
image_height, image_width, images_kwargs=dict())
num_image_tokens = self.get_hf_processor(
).image_seq_length * num_image_patches