Solved by Jbrec in post #2 
              
              
                Solved! 
def emotion_check(image):

  dataloader = transforms.Compose([transforms.ToTensor(),

                               transforms.RandomHorizontalFlip(),

                               transforms.Resize((100, 100)),

                               transforms.Normalize((0.5,0.5,0.5), (0.5,0.5…