You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.targets and self.data are lists that store the full dataset and each samples label (if there are no labels, then self.targets is a list of None's. I suspect the reason this is a little confusing here is that these variables are not explicitly defined in my code. Instead, for the three datasets I look at here (CIFAR10, CIFAR100, STL10) all of these attributes are inherited from their base class from the torch library (see e.g. the definition of CIFAR10Pair).
To see a concrete example of what these look like then I recommend loading the torch CIFAR10 dataset and simply printing these two variables.
When processing images using the utils script , could you clarify the definitions of the inputs?
I'm assuming:
self.targets
: a list of reference imageself.data
: a list of images of an alternate classIn this way I would expect that the
__get_item__()
would return eitherCould you confirm if I have this correct?
The text was updated successfully, but these errors were encountered: