Solved by Shisho_Sama in post #5 
              
              
                OK, I ended up changing the loss function as follows, How ever is it correct? or did I mess something up here again? 
def loss_function(output_e, outputs, imgs, device):
    criterion = nn.MSELoss()
    assert outputs.shape == imgs.shape ,f'outputs.shape : {outputs.shape} != imgs.shape : {imgs.shape…