Lets say I load ia dataset using ImageFolder because my data is structured that way.
Now I pick k indices of my choice and use torch.utils.data.Subset to create a subset dataset.
Now, for these images I want to modify the targets and give my own labels.
How do I do it?
Currently, the error is this AttributeError: 'Subset' object has no attribute 'targets'