Giter VIP home page Giter VIP logo

Comments (5)

ZFTurbo avatar ZFTurbo commented on July 23, 2024

Can you put small example which fails?
I mean archive with files.

from weighted-boxes-fusion.

ramdhan1989 avatar ramdhan1989 commented on July 23, 2024

this is an example


boxes_list = [
    [
        []
    ],
    [
        [0.04, 0.56, 0.84, 0.92]
    ],
]
scores_list = [
    [],
    [0.5]
]
labels_list = [
    [],
    [1]
]
weights = [2, 1]

boxes, scores, labels = nms_method(boxes_list, scores_list, labels_list, method=3, weights=weights, iou_thr=0.5, sigma=0.5, thresh=0.001)

from weighted-boxes-fusion.

ZFTurbo avatar ZFTurbo commented on July 23, 2024

It was a little bit incorrect. boxes_list shouldn't contain anything if empty:

        boxes_list = [
            [
            ],
            [
                [0.04, 0.56, 0.84, 0.92]
            ],
        ]
        scores_list = [
            [],
            [0.5]
        ]
        labels_list = [
            [],
            [1]
        ]
        weights = [2, 1]

        boxes, scores, labels = nms_method(
            boxes_list,
            scores_list,
            labels_list,
            method=3,
            weights=weights,
            iou_thr=0.5,
            sigma=0.5,
            thresh=0.001
        )

I fixed the problem.

from weighted-boxes-fusion.

zhangxgu avatar zhangxgu commented on July 23, 2024

It was a little bit incorrect. boxes_list shouldn't contain anything if empty:

        boxes_list = [
            [
            ],
            [
                [0.04, 0.56, 0.84, 0.92]
            ],
        ]
        scores_list = [
            [],
            [0.5]
        ]
        labels_list = [
            [],
            [1]
        ]
        weights = [2, 1]

        boxes, scores, labels = nms_method(
            boxes_list,
            scores_list,
            labels_list,
            method=3,
            weights=weights,
            iou_thr=0.5,
            sigma=0.5,
            thresh=0.001
        )

I fixed the problem.

I meet this problem too. This example can not work for me, it still comes to the ValueError: all the input arrays must have same number of dimensions.
Hope you can give me some advice about how to fix it

from weighted-boxes-fusion.

ZFTurbo avatar ZFTurbo commented on July 23, 2024

The fix is in repository alredy.

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.