aharley / simple_bev

A Simple Baseline for BEV Perception
MIT License
457 stars 70 forks source link

Negative loss #13

Closed shawrby closed 1 year ago

shawrby commented 1 year ago

I am currently training the bev model with my dataset. However, after enough steps, the total loss becomes negative as shown below. image

After debugging, when calculating uncertainty_loss(ce_uncertainty_loss, center_uncertainty_loss, offset_uncertainty_loss), weight(model.module.ce_weight, model.module.center_weight, model.module.offset_weight) is negative. image

Are there any possible causes?

aharley commented 1 year ago

Negative loss is OK here. For context you can check these: https://github.com/yaringal/multi-task-learning-example https://arxiv.org/abs/1705.07115

shawrby commented 1 year ago

Negative loss is OK here. For context you can check these: https://github.com/yaringal/multi-task-learning-example https://arxiv.org/abs/1705.07115

@aharley

Thank you so much!