[Bugfix] Fix wrong method name in Intern-S1 image processor (#22417)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
@@ -161,7 +161,7 @@ class InternS1ProcessingInfo(BaseProcessingInfo):
|
|||||||
if not isinstance(processor, GotOcr2ImageProcessorFast):
|
if not isinstance(processor, GotOcr2ImageProcessorFast):
|
||||||
raise ValueError(f'GotOcr2ImageProcessorFast is expected but got '
|
raise ValueError(f'GotOcr2ImageProcessorFast is expected but got '
|
||||||
f'{type(processor)}')
|
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())
|
image_height, image_width, images_kwargs=dict())
|
||||||
num_image_tokens = self.get_hf_processor(
|
num_image_tokens = self.get_hf_processor(
|
||||||
).image_seq_length * num_image_patches
|
).image_seq_length * num_image_patches
|
||||||
|
|||||||
Reference in New Issue
Block a user