[Bugfix] Fix HF format InternVL large variants video processing (#27330)

Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
This commit is contained in:
Isotr0py 2025-10-22 23:39:23 +08:00 committed by GitHub
parent 14e2f1231e
commit db6f28d898
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -182,7 +182,10 @@ class InternS1ProcessingInfo(BaseProcessingInfo):
def get_hf_processor(self, **kwargs: object) -> InternVLProcessor:
hf_processor = self.ctx.get_hf_processor(InternVLProcessor, **kwargs)
hf_processor.video_processor = cached_video_processor_from_config(
self.ctx.model_config, processor_cls=InternVLVideoProcessor, **kwargs
self.ctx.model_config,
processor_cls=InternVLVideoProcessor,
size=hf_processor.image_processor.size,
**kwargs,
)
return hf_processor