I have train, valid and test folders in my path, but I am seeing the following error when trying to use ImageDataBunch.from_folder
You can try this snippet instead of calling ImageDataBunch
class:
data = (ImageItemList.from_folder(path).random_split_by_pct().label_from_folder()
.transform(get_transforms(), size=224).databunch())
Good luck!
Aleksander
Unfortunately I don’t know how to solve it. Sorry.
Are you using the cloud or your own GPU?
I am using my own GPU