Lyken17 / Efficient-PyTorch

My best practice of training large dataset using PyTorch.
1.08k stars 139 forks source link

Format of ImageFolder #31

Open sundeco opened 11 months ago

sundeco commented 11 months ago

I am wondering what is the file format/structure of ImageFolder? When I downloaded a zip file from imagenet 1k, I just get a folder containing 50000 JPEG images, but it seems like I cannot directly run the code on this folder. Where/how can I get my data in the correct format?

Lyken17 commented 11 months ago

Like this

root/dog/xxx.png
root/dog/xxy.png
root/dog/[...]/xxz.png

root/cat/123.png
root/cat/nsdf3.png
root/cat/[...]/asd932_.png

You may find more information on PyTOrch API page