Need help in creating Image databunch

I am doing an image classification problem with 2 classes(Fire and NoFire) which I have in separate folders and I want to create an Imagedatabunch but I don’t understand how. My file structure is as follows

Training -> [Fire] [NoFire]
Test -> [Fire] [NoFire]
Can anyone please help me put this in a learner.
Thanks in advance :slight_smile:

I believe that “imagedatabunch” is from v1

You might want to take a look at the vision tutorial for v2:
, but I believe that [ImageDataLoaders.from_path_func](https://docs.fast.ai/vision.data.html#ImageDataLoaders.from_folder) should provide the functionality you’re looking for!