Giter VIP home page Giter VIP logo

Comments (5)

ZFTurbo avatar ZFTurbo commented on July 4, 2024 1

x1 must be lower than x2 and y1 must be lower than y2. I will fix it next release.

from weighted-boxes-fusion.

ZFTurbo avatar ZFTurbo commented on July 4, 2024

Coordinates for boxes expected to be normalized e.g in range [0; 1]. Order: x1, y1, x2, y2.

I will add warning on such cases.

from weighted-boxes-fusion.

shonenkov avatar shonenkov commented on July 4, 2024

@ZFTurbo no, it doesnt help!

wbf_boxes, wbf_scores, wbf_labels = ensemble_boxes.ensemble_boxes_wbf.weighted_boxes_fusion(
    (np.array(boxes)/511).tolist(),
    scores, 
    labels, 
    weights=None, 
    iou_thr=0.43, 
    skip_box_thr=0.44
)
wbf_boxes.shape
>>> (16, 4)

from weighted-boxes-fusion.

shonenkov avatar shonenkov commented on July 4, 2024

@ZFTurbo thank you! I will try it. I am looking forward to the new release :)

from weighted-boxes-fusion.

shonenkov avatar shonenkov commented on July 4, 2024

@ZFTurbo thank you! it works for me, I have used temporary "hardcode" (maybe it helps anyone):

   def prepare_boxes(boxes):
        result_boxes = boxes.copy()
        result_boxes[:,0] = np.min(boxes[:, [0,2]], axis=1)
        result_boxes[:,2] = np.max(boxes[:, [0,2]], axis=1)
        result_boxes[:,1] = np.min(boxes[:, [1,3]], axis=1)
        result_boxes[:,3] = np.max(boxes[:, [1,3]], axis=1)
        return result_boxes

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.