fix: Refactor register_image_processor to use kwarg instead of positional arg (#17685)

Signed-off-by: Xinyuan Tong <xinyuantong.cs@gmail.com>
This commit is contained in:
Xinyuan Tong
2026-01-24 18:31:01 -05:00
committed by GitHub
parent 69a7a70e47
commit 37c04c2245

View File

@@ -15,7 +15,9 @@ def register_image_processor(
"""
register customized hf image processor while removing hf impl
"""
AutoImageProcessor.register(config, None, image_processor, None, exist_ok=True)
AutoImageProcessor.register(
config, slow_image_processor_class=image_processor, exist_ok=True
)
def register_processor(config: Type[PretrainedConfig], processor: Type[ProcessorMixin]):