question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Zero loss_box_reg

See original GitHub issue

Hello,

I am trying to train on my custom dataset (only one class, one bbox per image, no segmentation). My goal is to predict the correct class and the bbox after training. I followed the tutorial of detectron2 but I see a difference when I train: the loss_box_reg is always 0. Also, the prediction after training works

For example: total_loss: 0.850 loss_cls: 0.848 loss_box_reg: 0.000 loss_mask: 0.000 loss_rpn_cls: 0.002 loss_rpn_loc: 0.000

Do you have an idea why it is so?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

5reactions
cybajcommented, Feb 20, 2020

In my case, this results occurred when my annotations have it’s category_id property which starts from 1, not 0. Maybe you should check this out.

You can find the documentation about this dataset property here.

0reactions
KangolHsucommented, Jul 28, 2020

I remove empty “segmentation” value in coco format json file,then it goes right now

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is loss_cls and loss_bbox and why are they always zero ...
loss_cls : a loss that measures the correctness of the classification of each predicted bounding box: each box may contain an object class,...
Read more >
Rpn_box_reg loss is nan - PyTorch Forums
In my experience nans appear when you have high values in your gradients or if you are doing a mathematically undefined operation (e.g...
Read more >
Traffic Sign Detection with Faster R-CNN - Kaggle
Explore and run machine learning code with Kaggle Notebooks | Using data from GTSDB - German Traffic Sign Detection Benchmark.
Read more >
ZERO
EH&S Software. Organized by Team. Communicated from Anywhere. ZERO® mitigates preventable accidents & illnesses by bringing together OSHA Compliance, ...
Read more >
arXiv:1901.03353v1 [cs.CV] 10 Jan 2019
Thus, no anchor box can be matched to those ac- ... is a sum of the three losses: LossboxCls + LossboxReg +. Lossmask....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found