ptrblck:

which will raise this error, so you might either want to pass the arguments in a different order, remove the root argument etc.


Hi ptrblck, I pass arguments in the below order:
    triplet_train_dataset = ImageNet_t('./tiny-imagenet-200', imagenet_traindata)

the error
in __init__
    self.train_data=self.ImageNet_dataset.image

AttributeError: 'ImageFolder' object has no attribute 'image'

has been occurred, my problem is how can I extract data and labels of the Tiny ImageNet dataset?