sarahpratt / CuPL

170 stars 14 forks source link

Structure of ImageNet Dataset Folder #9

Open ans92 opened 4 weeks ago

ans92 commented 4 weeks ago

Hi, Thank you @sarahpratt for this work and the code. I am trying to run the code but I am struggling with the preparations of the dataset in imagenetdataset.py file ImagenetDataset class. Can you please share your dataset folder structure? I have structured my dataset from kaggle https://www.kaggle.com/c/imagenet-object-localization-challenge/data. My Images are placed in "ILSVRC/Data/CLS-LOC/val/". Can you please guide me in this regard. Thank you.

sarahpratt commented 3 weeks ago

Have you set the PATH_TO_IMAGENET variable in classify_imagenet.py to the current path of your data?

ans92 commented 3 weeks ago

Thank you for your reply. Yes I have set the PATH_TO_IMAGENET variable and it has all the validation images without any folder. The name of images looks like: ILSVRC2012_val_00033334_n02106550.JPEG