Solved by ptrblck in post #2 
              
              
                Since ImageFolder loads the images lazily, i.e. in each call to its __getitem__ method a single sample will be loaded from one of the folders, I don’t think you can simply store the Dataset in this way. 
A possible workaround would be to zip the parent folder containing all image folders and move it…