def resize_annotation(
        self,
        annotation,
        orig_size,
        size,
        resample: PILImageResampling = PILImageResampling.NEAREST,
    ) -> Dict:
        """
        Resize the annotation to match the resized image. If size is an int, smaller edge of the mask will be matched
        to this number.
        """
        return resize_annotation(annotation, orig_size=orig_size, target_size=size, resample=resample)

        Resize the annotation to match the resized image. If size is an int, smaller edge of the mask will be matched
        to this number.
        
dpkd/transformers/src/transformers/models/deta/image_processing_deta.py