Removed unnecessary call

This commit is contained in:
Mikhail Moskovchenko 2025-06-19 12:40:09 +04:00
parent 96ee7b49b0
commit d7ac282524

View File

@ -183,11 +183,6 @@ class MobileNetV2ImageProcessorFast(BaseImageProcessorFast):
processed_segmentation_maps = processed_segmentation_maps.to(torch.int64)
return processed_segmentation_maps
def __call__(self, images, segmentation_maps=None, **kwargs):
# Overrides the `__call__` method of the `Preprocessor` class such that the images and segmentation maps can both
# be passed in as positional arguments.
return super().__call__(images, segmentation_maps=segmentation_maps, **kwargs)
@auto_docstring
def preprocess(
self,