Solved by ptrblck in post #4 
              
              
                That is expected and the target should contain the class indices, not the names. 
So e.g. for three folders your target should contain values in [0, 1, 2]  
These target values are used to index the output of the model during the loss calculation, so they are used as numerical values instead of the…