@manoj_kumar , Image folder looks for image/examples in a predefined way/hierarchy. Please look at the documentation. It takes a root folder, which contains sub folders, with class name and looks for images inside these subfolders
https://pytorch.org/docs/stable/torchvision/datasets.html#imagefolder 96.
The pattren is like this.
root/class_name/example.png