mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-14 11:15:20 +08:00
[Bugfix] Fix HF format InternVL large variants video processing (#27330)
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
This commit is contained in:
parent
14e2f1231e
commit
db6f28d898
@ -182,7 +182,10 @@ class InternS1ProcessingInfo(BaseProcessingInfo):
|
|||||||
def get_hf_processor(self, **kwargs: object) -> InternVLProcessor:
|
def get_hf_processor(self, **kwargs: object) -> InternVLProcessor:
|
||||||
hf_processor = self.ctx.get_hf_processor(InternVLProcessor, **kwargs)
|
hf_processor = self.ctx.get_hf_processor(InternVLProcessor, **kwargs)
|
||||||
hf_processor.video_processor = cached_video_processor_from_config(
|
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
|
return hf_processor
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user