Code Monkey home page Code Monkey logo

Comments (2)

BichenWuUCB avatar BichenWuUCB commented on July 22, 2024

@shuuki4 thanks for your question. I guess your question is already answered in #4 . Equation (3) in the paper should be fixed, the code implementation is correct. Sorry for the confusion.

from squeezedet.

shuuki4 avatar shuuki4 commented on July 22, 2024

@BichenWuUCB I have one more question related to this issue. If the code implementation is correct, I think this part of the code (Line 170 of nn_skeleton.py) should be changed:

        box_center_x = tf.identity(
            anchor_x + delta_x * anchor_w, name='bbox_cx')
        box_center_y = tf.identity(
            anchor_y + delta_y * anchor_h, name='bbox_cy')
        box_width = tf.identity(
            anchor_w * util.safe_exp(delta_w, mc.EXP_THRESH),
            name='bbox_width')
        box_height = tf.identity(
            anchor_h * util.safe_exp(delta_h, mc.EXP_THRESH),
            name='bbox_height')

Since delta is divided by ground truth bboxes' width and height, gt boxes' width and height should be used when stretching box_center_x and box_center_y. However, this code uses anchor_w and anchor_h to rescale the box center. Therefore, if the code implementation is correct, this code should also be changed to use ground truth box width/height. Even if this information does not directly affect the learning process, it affects final prediction for raw bounding box coordinates and also affect visualizations, so I think this code should be fixed.

One more concern is that eval.py uses this code (model.det_boxes) for final bounding box prediction. Since there is no ground truth for test data split, it is impossible to rescale delta into real coordinates.

from squeezedet.

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.