transforms.RandomCrop()

Hi @yuyaya,

A way to do would be to transform your numpy array to PIL Image in order to apply the transformation.

You can refer to this post Image data augmentation for numpy data