Skip to content

_bbox_transform_inv: Could not broadcast input array #1

@lunzueta

Description

@lunzueta

Hi @mitmul. I'm testing this program in Windows 10 64-bits (Anaconda + Pycharm), following your instructions.

The first error I found was in the file cpu_nms.pyx, line 26: cdef np.ndarray[np.int_t, ndim=1] order = scores.argsort()[::-1], where the error was ValueError: Buffer dtype mismatch, expected 'int_t' but got 'long long'. This can be fixed by replacing int_t with int64_t (in a similar way as suggested in rbgirshick/py-faster-rcnn#36).

After fixing that error, I get another error in the file bbox_transform.py, line 73, in _bbox_transform_inv:
pred_boxes[:, 0::4] = pred_ctr_x - 0.5 * pred_w
ValueError: could not broadcast input array from shape (300,21) into shape (1,21)

I'm stuck with this. Any suggestion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions