"...ssh:/git@developer.sourcefind.cn:2222/OpenDAS/dynamo.git" did not exist on "bc514fbee655356ef984c922f82c9e3ce08212b9"
Unverified Commit 04cf435d authored by Cyrus Leung's avatar Cyrus Leung Committed by GitHub
Browse files

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


Signed-off-by: default avatarDarkLight1337 <tlleungac@connect.ust.hk>
parent 7377131a
...@@ -161,7 +161,7 @@ class InternS1ProcessingInfo(BaseProcessingInfo): ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment