Giter Site home page Giter Site logo

Comments (4)

WongKinYiu avatar WongKinYiu commented on May 16, 2024 1

yolo enable one box belongs to multiple classes, so it use sigmoid for decoding.
jde extract reid feature, an unique object must have only one id, so it use softmax for decoding.
it is better to take a look compute_loss function to understand the reason.

from yolor.

WongKinYiu avatar WongKinYiu commented on May 16, 2024

Sorry about that I can not understand your question.

from yolor.

IgnacioTsai avatar IgnacioTsai commented on May 16, 2024

Sorry about that I can not understand your question.

No, I am the one should say sorry duo to weak expression.

My main question is "Does JDELayer is another prediction method of YOLO"?

The question what I means is the code from yolor/models/models.py , I saw that there is an hidden layer "JDELayer".
The keyword of "JDE" in YOLOR paper means "joint detection and embedding". I do not know what it means, but it looks like the structure of YOLOLayer, so that I compare with both code function in model.py.

I saw the only difference at the bottom of forward function.

YOLOLayer
io = p.sigmoid() io[..., :2] = (io[..., :2] * 2. - 0.5 + self.grid) io[..., 2:4] = (io[..., 2:4] * 2) ** 2 * self.anchor_wh io[..., :4] *= self.stride

JDELayer
io = p.clone() # inference output io[..., :2] = torch.sigmoid(io[..., :2]) * 2. - 0.5 + self.grid # xy io[..., 2:4] = (torch.sigmoid(io[..., 2:4]) * 2) ** 2 * self.anchor_wh # wh yolo method io[..., :4] *= self.stride io[..., 4:] = F.softmax(io[..., 4:])

It looks like different anchor predictions method, but I did not see any "jde" section in yolor relatived cfg.
That why I left this message.

By the way, thanks for reply.

from yolor.

IgnacioTsai avatar IgnacioTsai commented on May 16, 2024

I realize how it works due to your explanation. Thanks.

from yolor.

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.