pmf_cvpr22 icon indicating copy to clipboard operation
pmf_cvpr22 copied to clipboard

Depreciated augmentation Scale in favour of Resize

Open W-XuWX opened this issue 1 year ago • 0 comments

HI there,

Encounted error: https://github.com/pytorch/vision/issues/5927 while testing cross-domain fine-tuning.

Fix approach: under CropDisease_few_shot.py (and other datasets)

def parse_transform(..):
# replace Scale with Resize:
        elif transform_type=='Resize':
            return method([int(self.image_size*1.15), int(self.image_size*1.15)])
...

def get_composed_transform(...):
# replace Scale with Resize
else:
    transform_list = ["Resize", ... ]

W-XuWX avatar Aug 14 '23 02:08 W-XuWX