akirasosa / mobile-semantic-segmentation

Real-Time Semantic Segmentation in Mobile device
MIT License
715 stars 135 forks source link

Negative Loss #27

Closed vishal00100 closed 6 years ago

vishal00100 commented 6 years ago

Thank you for your post this repo. It's been very helpful. I am trying to run full training on LFW dataset and I'm seeing negative loss value.

[==============================] - 17s 2s/step - loss: -0.0873

Is this expected?

JACKYLUO1991 commented 6 years ago

I thank it should be: return 1-dice_coef(y_true, y_pred) in function dice_coef_loss(y_true, y_pred)