Not possible with ImageFolder, but you can basically do anything you want in the getitem method, including fetching images from S3. The problem is the network speed though, so it’s really hard to make it fast enough, even with several dataloader workers/ number of preprocessing threads.