Giter VIP home page Giter VIP logo

Comments (5)

Linamiao-1998 avatar Linamiao-1998 commented on August 26, 2024

I also have this question, do you find the problem?

from weighted-boxes-fusion.

ZFTurbo avatar ZFTurbo commented on August 26, 2024

If any coordinate goes below 0 or higher than 1 it will be trimmed to 0 or 1 respectively.
It's in the code here:
https://github.com/ZFTurbo/Weighted-Boxes-Fusion/blob/master/ensemble_boxes/ensemble_boxes_wbf.py#L56

from weighted-boxes-fusion.

SISTMrL avatar SISTMrL commented on August 26, 2024

how to normalize? the box coordinate is (x1, y1, x2, y2) which represents the left-top and right-bottom corner, and the image's height is h, image's width is w. the normalized coordinates is (x1/w, y1/h, x2/w, y2/h)?

from weighted-boxes-fusion.

ZFTurbo avatar ZFTurbo commented on August 26, 2024

how to normalize? the box coordinate is (x1, y1, x2, y2) which represents the left-top and right-bottom corner, and the image's height is h, image's width is w. the normalized coordinates is (x1/w, y1/h, x2/w, y2/h)?

Yes, that's right.

from weighted-boxes-fusion.

nmnguyensg avatar nmnguyensg commented on August 26, 2024

how to normalize? the box coordinate is (x1, y1, x2, y2) which represents the left-top and right-bottom corner, and the image's height is h, image's width is w. the normalized coordinates is (x1/w, y1/h, x2/w, y2/h)?

Yes, that's right.

Hi, I also have the same problem, I understand how to normalize the box coordinates. However, Weighted-Boxes fusion need to calculate the IoU for each pair of bounding boxes. It means we need image height and width to convert them to box coordinates with Pascal Voc (without normalized). In function below, it does not require image height and width.

boxes, scores, labels = weighted_boxes_fusion(boxes_list, scores_list, labels_list, weights=weights, iou_thr=iou_thr, skip_box_thr=skip_box_thr)

Please help me explain it. Thank you.

from weighted-boxes-fusion.

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.