Hi, I am wondering is there a way to access the targets attributes for dataset which is imported by ImageFolder? I have a training set with 6 classes: building, forest, sea, street, glacier, and mountain. I only want to preserve the forest class label and mark the rest to unforest. I tried this:
dataset.targets[dataset.targets != 1] = 0
which didn’t work. Because it said it doesn’t have attribue targets