pytorchversion.transform 整理

transforms on PIL images

1、resize(sizeinterpolation=2)

2、Scale(*args**kwargs)

3、CenterCrop(size)

4、RandomCrop(sizepadding=0)

5、RandomHorizontalFlip(p=0.5)

6、RandomVerticalFlip(p=0.5)

7、RandomResizedCrop(sizescale=(0.081.0)ratio=(0.751.3333333333333333)interpolation=2)

8、RandomSizedCrop(*args**kwargs)

9、Grayscale(num_output_channels=1)

10、RandomGrayscale(p=0.1)

11、FiveCrop(size)

12、TenCrop(sizevertical_flip=False)

13、Pad(paddingfill=0)

14、ColorJitter(brightness=0contrast=0saturation=0hue=0)

15、RandomRotation(degreesresample=Falseexpand=Falsecenter=None)

16、RandomAffine(degreestranslate=Nonescale=Noneshear=Noneresample=Falsefillcolor=0)

你可能感兴趣的:(pytorchversion.transform 整理)