How to use xtra_tfms to create multiple image transformations

#1

I want to do multiple transformations with get_transforms(), but when i pass a list of transformations in xtra_tfms, like this:

  • tfms = get_transforms(xtra_tfms= [ contrast(scale=(0.5, 1.5), p=0.75), rand_resize_crop(224) ])
    It returns this error when i try to plot the transformtions:
  • AttributeError: ‘list’ object has no attribute ‘name

Looking at the definition of the function, it seems like I should pass xtra_tfms a list, like i did:

0 Likes