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.

Formal defintion of G_cls, G_reg, l_cls, l_reg

See original GitHub issue

Hello @MendelXu!

The paper mentions that G_cls is produced from teacher model by foreground filtering, G_reg is produced from teacher model by box variance filtering; unfortunately the paper doesn’t mention the definition of l_cls and l_reg. l_cls(student_candidate_box, teacher_pseudo_boxes) and l_reg(student_candidate_box, teacher_pseudo_boxes) still needs to do label assignment. How is this assignment performed? What losses are used?

The paper mentions: Another important benefit of this end-to-end framework is that it allows for greater leverage of the teacher model to guide the training of the student model, rather than just providing “some generated pseudo boxes with hard category labels” as in previous approaches [27, 36]. A soft teacher approach is proposed to implement this insight. In this approach, the teacher model is used to directly assess all the box candidates that are generated by the student model, rather than providing “pseudo boxes” to assign category labels and regression vectors to these student-generated box candidates.

It seems that in SoftTeacher, pseudo boxes with hard labels (G_cls, G_reg) are still generated and that some standard IoU-based target-box matching / assignment (l_cls, l_reg) is used. If it’s not the case, could you please bring some clarifications?

It’s possible to recover this information from the code, but some formal definitions could help reading the code as well.

Thank you!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
MendelXucommented, Jan 24, 2022

l_cls and l_reg is standard loss function for object detection. Concretely, for the detector Faster RCNN, l_cls is cross-entropy loss. And l_reg is L1 loss. And the assignment is still performed in a standard way.

0reactions
MendelXucommented, Jan 25, 2022

In eq. 4 unsupervised L_u^cls is computed, so there is no ground truth, only pseudo ground truth. Do you mean that student-generated boxes are split into bg / fg by their ious with pseudo ground truth, right?

Yes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

LCLS Overview | Linac Coherent Light Source
LCLS takes X-ray snapshots of atoms and molecules at work, providing atomic resolution detail on ultrafast timescales to reveal fundamental processes in ...
Read more >
LCLS Parameters | Linac Coherent Light Source
The LCLS NC linac is also capable of providing two-color operating modes, where multiple FEL pulses are produced with about 1% photon energy...
Read more >
LCLS-II | Linac Coherent Light Source
Both LCLS and LCLS-II will use electrons accelerated to nearly the speed of light to generate beams of extremely bright X-ray laser light....
Read more >
Linac Coherent Light Source | SLAC National Accelerator ...
World's First Hard X-ray Free-electron Laser​​ LCLS is an Office of Science User Facility operated for the U.S. Department of Energy by Stanford...
Read more >
LCLS-II-HE Overview | Linac Coherent Light Source
LCLS-II will be the first XFEL to be based on continuous-wave superconducting accelerator technology (CW-SCRF), with a linac energy of 4 GeV and...
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