MegEngine / MegEngine/YOLOX

RuntimeError: assertion `dtype == dst.dtype && dst.is_contiguous()'

Open
#4 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
114
Forks
14
PR merge metrics
No merged PRs in 30d

Description

当输入宽高不一致时报错,
在训练过程中报错,报错时机随缘:
yolo_head.py", line 351, in get_assignments
bboxes_preds_per_image = bboxes_preds_per_image[fg_mask]
RuntimeError: assertion `dtype == dst.dtype && dst.is_contiguous()' failed at ../../../../../../dnn/src/common/elemwise/opr_impl.cpp:281: void megdnn::ElemwiseForward::check_layout_and_broadcast(const TensorLayoutPtrArray&, const megdnn::TensorLayout&)

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 at yolo_head.py line 351 in get_assignments and reproduce training with inputs whose width and height differ. Inspect the reported MegEngine assertion about dtype and contiguity, then verify training completes without this RuntimeError under the reported input condition.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.