AttributeError: 'TfmCrop' object has no attribute 'tfm'
shirishr opened this issue · comments
Is there a way to eliminate this error in cell 30?
Looks like some changes have occurred in fastai repo
Yes I am having the same issue
This error was preceded by this warning when I ran this cell:
We create a databunch with all the data in the training set and no validation set (DatasetFormatter uses only the training set)
db = (ImageItemList.from_folder(path)
.no_split()
.label_from_folder()
.transform([crop_pad, crop_pad], size=224)
.databunch())
You can deactivate this warning by passing no_check=True
.
/opt/anaconda3/lib/python3.7/site-packages/fastai/basic_data.py:226: UserWarning: There seems to be something wrong with your dataset, can't access any element of self.train_ds.
Tried: 33187,40616,29090,2216,41860...
warn(warn_msg)
How about update it to latest fastai version and use this ? :
tfms = [crop_pad(), crop_pad()]
db = (ImageList.from_folder(path)
.no_split()
.label_from_folder()
.transform(tfms=tfms, size=224)
.databunch())