Open V1oletM opened 2 years ago
If you have folder structure supported by ImageFolder
class, try to use following ImageFolder
class.
class ImageFolder(datasets.ImageFolder):
def __getitem__(self, index):
img, target = super().__getitem__(index)
return img, target, index
For imagenet dataset crop size is change to 96x96. Other parameters are not changed.
Hi, Thank you for sharing your code! The results and idea are really helpful! When I'm trying to use ImageNet-10 by overwriting class with datasets.ImageFolder(), it doesn't work
I will really appreciate your recommendations on more details about using ImageNet datasets and what parameters needed adjusted. Thank you!