Coder Social home page Coder Social logo

The network predicts absolute value of xy instead of offset to the grid cell as specified in paper. Why is it so? about pytorch-yolo-v1 HOT 3 OPEN

abeardear avatar abeardear commented on May 29, 2024
The network predicts absolute value of xy instead of offset to the grid cell as specified in paper. Why is it so?

from pytorch-yolo-v1.

Comments (3)

jasonwjw avatar jasonwjw commented on May 29, 2024 1

Refer to the predict.py the function of decoder reveals the network predicts the offsets to the grid cell , while in the loss.py we can find that box1_xyxy and the box2_xyxy they are not the truely center_x and center_y for the image size, they are the offsets to the specific grid cell, and they need to add the location of the grid cell, but here we want to compute the iou for the predicted box and the target box,so we can treat them as a shift transformation of the center_x and center_y and the final iou won't change.

from pytorch-yolo-v1.

Jinming-Su avatar Jinming-Su commented on May 29, 2024

Refer to the code, and I find the network predicts the values of center pixel and the width and height, which is not as what you say.

from pytorch-yolo-v1.

meet-minimalist avatar meet-minimalist commented on May 29, 2024

@Jinming-Su I think you are correct. He has encoded the vector of 7x7x30 in dataset.py line no. 20 to 25 as offset of grid cell.

from pytorch-yolo-v1.

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.