Remove torchvision requirement from AutoImageProcessor (#37457)

This commit is contained in:
Lysandre Debut 2025-04-21 14:59:33 +02:00 committed by GitHub
parent 1930e750e4
commit 1077603410
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -327,7 +327,7 @@ def _warning_fast_image_processor_available(fast_class):
)
@requires(backends=("vision", "torchvision"))
@requires(backends=("vision",))
class AutoImageProcessor:
r"""
This is a generic image processor class that will be instantiated as one of the image processor classes of the