src/transformers/models/oneformer/image_processing_oneformer.py/OneFormerImageProcessor/rescale
class OneFormerImageProcessor:    def rescale(
        self, image: np.ndarray, rescale_factor: float, data_format: Optional[ChannelDimension] = None
    ) -> np.ndarray:
        """
        Rescale the image by the given factor.
        """
        return rescale(image, rescale_factor, data_format=data_format)