Giter Club home page Giter Club logo

Comments (3)

Aslizy avatar Aslizy commented on July 27, 2024

It is not erasing, more like for one truth bb should not correspond to two anchors boxes. So conf_mask[b, anch_ious > ignore_thres, gj, gi] = 0 initialize those possible anchor boxes to 0, and then in the later step conf_mask[b, best_n, gj, gi] = 1 assign the best iou anchor box to that truth bb.

In your example, I guess in each iteration, it is computing the anch_ious of each truth bb (for t in range(target.shape[1]). So you expect the gj and gi are different for those bbs. (under the assumption that it is not the case of multiple-label assignment). So what conf_mask[b, anch_ious > ignore_thres, gj, gi] = 0 does is not erasing.

from pytorch-yolov3.

ydixon avatar ydixon commented on July 27, 2024

I think either way the best iou anchor box is only assigned to one truth bb. Because if there's repeating assignment on the anchor box, the conf_mask and tcls would only be set to 1 again.

However, for the case above, it will wipe all anch_ious > ignore_thres even the ones that have another truth bb assigned.

from pytorch-yolov3.

eriklindernoren avatar eriklindernoren commented on July 27, 2024

An anchor for a given grid cell can only be assigned to one object, so that would be fine in this case, given that the specific anchor is the best match for these objects.

from pytorch-yolov3.

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.