The ImageFolder will lazily load the data in its __getitem__, so you won’t be able to directly access an internal attribute with all images.
You could either iterate the dataset or DataLoader and store the images in e.g. a list.