Error while preparing data

i am working on a dataset from kaggle to identify if a person has covid-19 or not using x-ray images.

data looks like this

Screenshot_20200521_122304

now I don’t know how to create a databunch with this. can anyone help me with it?

here is what I did

but it is not working

1 Like

have a look at this kaggle notebook: — Pneumonia Detection: fastai 2019 update —

they are using something like this

data = ImageDataBunch.from_folder(path,
valid=‘val’,
valid_pct=0.2,
size=256, bs=bs,
ds_tfms=tfms).normalize(imagenet_stats)

should work

I’m going to try out as well :slight_smile: