Code Monkey home page Code Monkey logo

Comments (3)

yrcong avatar yrcong commented on July 19, 2024

Hi, it is a bit long... I have forgot the details. But you can have a look, if there are box samples like c<a [a,b,c,d], it is of course xyhw.
For xyxy, the points should be top left and bottom right.
For xywh, xy should be the center.
I am busy with some deadlines so sry that i cannot check it for you now.

from reltr.

PJLallen avatar PJLallen commented on July 19, 2024

Hi Yuren,
I have checked the processed json from OpenImage. Using through /data/process/py, the bbox may have some trouble as follows:
bbox = [j[0], j[1], j[2]-j[0], j[3]-j[1]] #cxcywh
Here, if you want to obtain cx, cy , w, h, the bbox should be treated as: j[0]+(j[2]-j[0])/2, j[1]+(j[3]-j[1]])/2, j[2]-j[0], j[3]-j[1].
because j[0] and j[1] are Xmin, Ymin respectively, instead of CenterX, CenterY.
I don't know if such the GT json would have an impact on the training of the model, but it looks like you have successfully trained and tested it, and I'm wondering if I need to change this box format?

from reltr.

yrcong avatar yrcong commented on July 19, 2024

I guess the comment might be wrong but the code should be correct. The format seems to be xyxy. During the evaluation, the function box_cxcywh_to_xyxy is used to convert cxcywh to xyxy.

from reltr.

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.