Giter Site home page Giter Site logo

Comments (5)

xg-chu avatar xg-chu commented on July 20, 2024

The EMD Loss calculates the minimum loss between the two sets. The single loss between each element in the two sets is measured by SmoothL1 and softmax Cross Entropy.

from crowddet.

ming71 avatar ming71 commented on July 20, 2024

For each element in anchor set , two boxes will be regressed, then you apply smoothl1 and cross entropy to it ....It's almost the same as traditional loss do.In this way , I can also regard traditional single loss as EMD Los between anchor set and pred_boxes set while num of pred_boxes is equal to that in anchor set , right?

from crowddet.

ming71 avatar ming71 commented on July 20, 2024

In details , given anchor set A in shape of (1, 1, 4) (bs=1, num_anchor=1, 4=xywh),and pred boxes set B in shape of (1, 2, 4), when we calc EMD loss for regression, we can obtaion res = smoothl1(A[0,0], B[0,0]) + smoothl1(A[0,0], B[0,1]) .
for single loss, pred boxes set B will be in shape of (1, 1, 4), and result will be res = smoothl1(A[0,0], B[0,0]) .

sorry to disturb you, is there something wrong with my understanding?Thank you.

from crowddet.

xg-chu avatar xg-chu commented on July 20, 2024

The anchor is regressed by two parallel prediction head. The anchor A is predicted as P_head0 and P_head1.
The loss is between P_heads and ground truths.
The EMDLoss calculate the min ((L(p_head0, B0) + L(p_head1, B1)),(L(p_head0, B1) + L(p_head1, B0))). Ensure that the network can always be optimized in the optimal direction.

from crowddet.

ming71 avatar ming71 commented on July 20, 2024

thanks for your reply, I make it to understand now

from crowddet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.