Add DetrImageProcessorFast (#34063)
* add fully functionning image_processing_detr_fast * Create tensors on the correct device * fix copies * fix doc * add tests equivalence cpu gpu * fix doc en * add relative imports and copied from * Fix copies and nit
This commit is contained in:
@@ -191,7 +191,7 @@ class ImageProcessingTestMixin:
|
||||
|
||||
dummy_images = torch.randint(0, 255, (4, 3, 224, 224), dtype=torch.uint8)
|
||||
image_processor_slow = self.image_processing_class(**self.image_processor_dict)
|
||||
image_processor_fast = self.fast_image_processing_class()
|
||||
image_processor_fast = self.fast_image_processing_class(**self.image_processor_dict)
|
||||
|
||||
fast_time = measure_time(image_processor_fast, dummy_images)
|
||||
slow_time = measure_time(image_processor_slow, dummy_images)
|
||||
|
||||
Reference in New Issue
Block a user