Why my network is not learning at all

it is my network why it is not working? i mean it outputs same values all the time. i am training 50x50x3 images and then formatting them to 50x50 grayscale.as a loss function i am using f.nll_loss as a optimizer i am using adam.this code works it is copy from sendtex’s tutorials.

Could you post the training code (wrapping it in three backticks ```), so that we can have a look?
I’m a bit skeptical about the usage of softmax at the end of your model, since your model looks like a classification model and the vanilla loss functions would be nn.CrossEntropyLoss or nn.NLLLoss, which don’t expect softmax outputs.