Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Support RTMDet-Ins #1867

Merged
merged 3 commits into from
Mar 23, 2023
Merged

[Enhancement] Support RTMDet-Ins #1867

merged 3 commits into from
Mar 23, 2023

Conversation

lzhangzz
Copy link
Collaborator

@lzhangzz lzhangzz commented Mar 9, 2023

resolves #1849

@hanrui1sensetime
Copy link
Collaborator

Seems failed on python demo when the bbox is out of the picture because the mask shape and the mask_img shape are different.

FYI:
The model you can use rtmdet-ins-tiny-ort.
And the command is

python object_detection.py cpu ../../rtmdet-ins-tiny-ort/ ../../../mmdeploy/demo/resources/det.jpg

Then the error log is:

cv2.error: OpenCV(4.7.0) /io/opencv/modules/core/src/arithm.cpp:212: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and type), nor 'array op scalar', nor 'scalar op array' in function 'binary_op'

The cause is:

debugging top: 104, top+mask.shape[0]: 141, left: 608, left+mask.shape[1]: 641
debugging mask: (37, 33), mask_img: (37, 32)

And the bug is at here

@lvhan028
Copy link
Collaborator

Seems failed on python demo when the bbox is out of the picture because the mask shape and the mask_img shape are different.

FYI: The model you can use rtmdet-ins-tiny-ort. And the command is

python object_detection.py cpu ../../rtmdet-ins-tiny-ort/ ../../../mmdeploy/demo/resources/det.jpg

Then the error log is:

cv2.error: OpenCV(4.7.0) /io/opencv/modules/core/src/arithm.cpp:212: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and type), nor 'array op scalar', nor 'scalar op array' in function 'binary_op'

The cause is:

debugging top: 104, top+mask.shape[0]: 141, left: 608, left+mask.shape[1]: 641
debugging mask: (37, 33), mask_img: (37, 32)

And the bug is at here

Can you share the test image?

@hanrui1sensetime
Copy link
Collaborator

Seems failed on python demo when the bbox is out of the picture because the mask shape and the mask_img shape are different.
FYI: The model you can use rtmdet-ins-tiny-ort. And the command is

python object_detection.py cpu ../../rtmdet-ins-tiny-ort/ ../../../mmdeploy/demo/resources/det.jpg

Then the error log is:

cv2.error: OpenCV(4.7.0) /io/opencv/modules/core/src/arithm.cpp:212: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and type), nor 'array op scalar', nor 'scalar op array' in function 'binary_op'

The cause is:

debugging top: 104, top+mask.shape[0]: 141, left: 608, left+mask.shape[1]: 641
debugging mask: (37, 33), mask_img: (37, 32)

And the bug is at here

Can you share the test image?

det.jpg

Copy link
Collaborator

@hanrui1sensetime hanrui1sensetime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@lvhan028
Copy link
Collaborator

lvhan028 commented Mar 23, 2023

Seems failed on python demo when the bbox is out of the picture because the mask shape and the mask_img shape are different.
FYI: The model you can use rtmdet-ins-tiny-ort. And the command is

python object_detection.py cpu ../../rtmdet-ins-tiny-ort/ ../../../mmdeploy/demo/resources/det.jpg

Then the error log is:

cv2.error: OpenCV(4.7.0) /io/opencv/modules/core/src/arithm.cpp:212: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and type), nor 'array op scalar', nor 'scalar op array' in function 'binary_op'

The cause is:

debugging top: 104, top+mask.shape[0]: 141, left: 608, left+mask.shape[1]: 641
debugging mask: (37, 33), mask_img: (37, 32)

And the bug is at here

Can you share the test image?

det.jpg

I didn't reproduce your result. Was it still an issue at your side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants