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