Unable to implement rand_resize_crop

I am trying to pass rand_resize_crop in xtra_tfms within get_transforms function. I am not able to implement it. Please find the related code in the screenshot below. Please let me know if you were able to successfully implement this augmentation technique in fastai, if yes how? I am currently on 1.0.42.

1 Like

Be careful, rand_resize_crop isn’t a transform but a function that returns a list two transforms, so you should add it in xtra_tfms with *rand_resize_crop(size=64,...)


Thank you very much!!

Jain, could you please post the code for rand_resize_crop - I don’t get it from the above reply. thanks