Giter VIP home page Giter VIP logo

Comments (5)

lucasjinreal avatar lucasjinreal commented on July 25, 2024

thanks for this useful info!

what's the side effect due to wrong gaussian radius anyway?

from centernet_pro_max.

kikirizki avatar kikirizki commented on July 25, 2024

@fenglv12345 show significant improvement in average recall princeton-vl/CornerNet#110 (comment)

from centernet_pro_max.

lucasjinreal avatar lucasjinreal commented on July 25, 2024

got it, will try it

from centernet_pro_max.

kikirizki avatar kikirizki commented on July 25, 2024

thanks for this useful info!

what's the side effect due to wrong gaussian radius anyway?

Lower average recall

from centernet_pro_max.

Devoe-97 avatar Devoe-97 commented on July 25, 2024

the code for gaussian radius from CenterNet repo was brought from Cornernet and the gaussian_radius() function is wrong, it has been fixed by the author here is the code
def gaussian_radius(det_size, min_overlap):
height, width = det_size

a1  = 1
b1  = (height + width)
c1  = width * height * (1 - min_overlap) / (1 + min_overlap)
sq1 = np.sqrt(b1 ** 2 - 4 * a1 * c1)
r1  = (b1 - sq1) / (2 * a1)

a2  = 4
b2  = 2 * (height + width)
c2  = (1 - min_overlap) * width * height
sq2 = np.sqrt(b2 ** 2 - 4 * a2 * c2)
r2  = (b2 - sq2) / (2 * a2)

a3  = 4 * min_overlap
b3  = -2 * min_overlap * (height + width)
c3  = (min_overlap - 1) * width * height
sq3 = np.sqrt(b3 ** 2 - 4 * a3 * c3)
r3  = (b3 + sq3) / (2 * a3)
return min(r1, r2, r3)

Please refer to this for formula derivation
princeton-vl/CornerNet#110

for r1 and r2, why is b-sq not b+sq? they all are positive.

from centernet_pro_max.

Related Issues (12)

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.