src/transformers/models/mask2former/image_processing_mask2former.py/Mask2FormerImageProcessor/max_size
class Mask2FormerImageProcessor:    def max_size(self):
        warnings.warn(
            "The `max_size` property is deprecated and will be removed in v4.27. Please use size['longest_edge']"
            " instead.",
            FutureWarning,
        )
        return self.size["longest_edge"]