Skip to content

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

Open

Description

@amazingzby

当输入宽高不一致时报错,
在训练过程中报错,报错时机随缘:
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&)

Activity

  1. asdcjt commented on Sep 15, 2021

    @asdcjt

    Are you using the pretrain model? I loaded it but it had some mistakes:
    param head.cls_preds.0.bias shape mismatch, should be (1, 5, 1, 1), get (1, 80, 1, 1)
    and so on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions