I want to create a DataBunch object from training files which are all in the same folder, and the labels are contained in the filenames. How do I do it?
Here’s the file structure.
root
|
|--train
|
|--label1_0001.jpg
|--label1_0002.jpg
|--label2_0001.jpg
|...
|--test