I’m trying to apply the facenet paper myself.
I’ve stumbled upon a problem, My loss is always constant.

This is my code for training my NN

This is my forward and loss function
For some reason the loss is always coming out to be constant and the model isn’t learning.
This can be seen in the image given below that the loss is constant in every epoch.

Please if someone knows the solution, do tell me as I require to complete the project in a very small time.