Hi all,
I recently started my fastai
journey, and so far I’m impressed by the usability of the library! This is the first time I see a DL library which doesn’t even require a labels file - it can build labels automatically! Unfortunately, I have a dataset with a peculiar folder structure. The labels are the folder names:
path\
OK\
NOK\
but there are no train
or val
folders. In other words, I don’t have the folder structure which ImageDataBunch.from_folder would require to work:
path\
train\
OK\
NOK\
valid\
OK\
NOK\
I could build the structure myself, but then I would also have to take care of making a sensible split between train
and val
, and I would have to take into account the fact that the class NOK
is about 20 times rarer than the class OK
. I’d rather have fastai
to take care of these nuisances Is there any other ImageDataBunch
generator which might help me?