I import my data into fastai / pytorch as follows:
src = ImageList.from_folder(path).split_subsets(train_size = train_size, valid_size = valid_size, seed = model).label_from_folder()
tfms = None # not the case but None for simplifying the code here
data = src.transform(tfms=tfms, size=size, resize_method=ResizeMethod.SQUISH).databunch(bs=batch_size, num_workers=4).normalize()
I would like to know if its possible to have more than one folder something like:
src = ImageList.from_folder(path1, path2, path3).split_subsets(train_size = train_size, valid_size = valid_size, seed = model).label_from_folder()
tfms = None # not the case but None for simplifying the code here
data = src.transform(tfms=tfms, size=size, resize_method=ResizeMethod.SQUISH).databunch(bs=batch_size, num_workers=4).normalize()
Where all the paths are organized the same way.
Thank you in advance.