Solved by tom in post #2 
              
              
                As per the documentation documentation, ImageFolder expects images to be organized as class/instance.tif with class subfolders. 
Best regards 
Thomas