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:
@@ -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]):
|
||||
|
||||
Reference in New Issue
Block a user