Which fastai.vision factory method to use to get labeled data?

Hello there,

I have some image data and a csv file that contains the rate of those images and corresponding image names. I wonder how can I get the data properly. I appreciate it if you could help.

My image file has a number as the image names:
“01”
“02”

My csv file:
image . rate
“image_01” 5
“image_01” 2
“image_02” 3

I want to pass the row images to resnet and utilize the data from csv file as validation. I wonder if I can use ImageDataBunch.from_df and ImageDataBunch.from_folder at the same time, and how can I do that.

ImageDataBunch.from_folder requires the following structure:
path
train
clas1
clas2

valid
clas1
clas2

test\

I think this should help. Load train and Validation set from different csv files