fpingham / dataset-cleaner

Notebook with the necessary instructions and code to clean your computer vision dataset

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'ImageItemList' object has no attribute 'no_split'

garimss opened this issue · comments

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())
this gives an error. Anyone have solution for this

I updated to latest fastai v1 and replace it with:

tfms = [crop_pad(), crop_pad()]
db = (ImageList.from_folder(path)
                   .no_split()
                   .label_from_folder()
                   .transform(tfms=tfms, size=224)
                   .databunch())