Open ssusie opened 4 years ago
You can refer to 'https://github.com/kjunelee/MetaOptNet’ to download the tieredImageNet and try again.
The page 'https://github.com/kjunelee/MetaOptNet' seems to have a 404 error. Is there any other way to download tieredImageNet with categories?
@johnjongko I had the same problem. Have you solved the problem?
this error comes from the file "tieredImageNet.py",you can change the code in line 60 from"if '.JPEG' not in img_path:" to "if '.jpg' not in img_path:".
I have downloaded Imagenet dataset (~140GB) then ran tiered imagenet tools on it to build the tiered imagent dataset, but it's not loading properly in your code. The error I am getting is the following:
`Initializing dataset tieredImageNet => tieredImageNet loaded Dataset statistics:
subset | # cats | # images
train | 0 | 0 val | 0 | 0 test | 0 | 0
total | 0 | 0
Traceback (most recent call last): File "train.py", line 188, in
main()
File "train.py", line 53, in main
dm = DataManager(args, use_gpu)
File "/home/sargsyan/fewshot-CAN/torchFewShot/data_manager.py", line 81, in init
load=args.load,
File "./torchFewShot/dataset_loader/init.py", line 21, in init_loader
return __loader_factory[name](*args, **kwargs)
File "./torchFewShot/dataset_loader/test_loader.py", line 74, in init
Tnovel, Exemplar = self._sample_episode()
File "./torchFewShot/dataset_loader/test_loader.py", line 88, in _sample_episode
Knovel = random.sample(self.labelIds, self.nKnovel)
File "/home/sargsyan/anaconda3/envs/pytorch/lib/python3.6/random.py", line 320, in sample
raise ValueError("Sample larger than population or is negative")
ValueError: Sample larger than population or is negative`
Could you please point me how you built the dataset you used, or provide access to the dataset?
Thank you.