How to know which loss function is suitable for image classification?
If you have two classes (i.e. binary classification), you should use a binary crossentropy loss.

If you have more than two you should use a categorical crossentropy loss.