onnx / onnx/models

inference

Open
#391 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
9.8k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description


IndexError Traceback (most recent call last)
in ()
6 STRIDES = np.array(STRIDES)
7
----> 8 pred_bbox = postprocess_bbbox(detections, ANCHORS, STRIDES, XYSCALE)
9 bboxes = postprocess_boxes(pred_bbox, original_image_size, input_size, 0.25)
10 bboxes = nms(bboxes, 0.213, method='nms')

in postprocess_bbbox(pred_bbox, ANCHORS, STRIDES, XYSCALE)
14 conv_shape = pred.shape
15 output_size = conv_shape[1]
---> 16 conv_raw_dxdy = pred[:, :, :, :, 0:2]
17 conv_raw_dwdh = pred[:, :, :, :, 2:4]
18 xy_grid = np.meshgrid(np.arange(output_size), np.arange(output_size))

IndexError: too many indices for array

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the traceback in the notebook cells that call postprocess_bbbox, then inspect the shape of pred and the detections passed into it. Done means the inference path no longer raises the IndexError and produces bounding boxes for the reported input.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, numpy, python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.