Skip to content

Commit 2a95622

Browse files
committed
remove specific logic for _from_auto
1 parent 74d56be commit 2a95622

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/transformers/image_processing_base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,6 @@ def from_dict(cls, image_processor_dict: dict[str, Any], **kwargs):
362362
"""
363363
image_processor_dict = image_processor_dict.copy()
364364
return_unused_kwargs = kwargs.pop("return_unused_kwargs", False)
365-
# remove _from_auto from kwargs before updating the image processor dict
366-
kwargs.pop("_from_auto", None)
367365
image_processor_dict.update({k: v for k, v in kwargs.items() if k in cls.valid_kwargs.__annotations__})
368366
image_processor = cls(**image_processor_dict)
369367

0 commit comments

Comments
 (0)