From f3f534e812b1aea9a86381a0c009cab07d393df9 Mon Sep 17 00:00:00 2001 From: Kaparthy Reddy Date: Sat, 11 Oct 2025 20:21:05 +0530 Subject: [PATCH] Add image_processor_list for ConvNext fast processor tests - Add image_processor_list to enable testing both slow and fast processors - All 19 tests passing for both ConvNextImageProcessor and ConvNextImageProcessorFast - Fast processor implementation already exists with custom resize logic Contributes to #33068 --- tests/models/convnext/test_image_processing_convnext.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/models/convnext/test_image_processing_convnext.py b/tests/models/convnext/test_image_processing_convnext.py index 373eb16fce28..6962da8923fe 100644 --- a/tests/models/convnext/test_image_processing_convnext.py +++ b/tests/models/convnext/test_image_processing_convnext.py @@ -88,11 +88,13 @@ def prepare_image_inputs(self, equal_resolution=False, numpify=False, torchify=F class ConvNextImageProcessingTest(ImageProcessingTestMixin, unittest.TestCase): image_processing_class = ConvNextImageProcessor if is_vision_available() else None fast_image_processing_class = ConvNextImageProcessorFast if is_torchvision_available() else None + image_processor_list = [image_processing_class, fast_image_processing_class] def setUp(self): super().setUp() self.image_processor_tester = ConvNextImageProcessingTester(self) + @property def image_processor_dict(self): return self.image_processor_tester.prepare_image_processor_dict()