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

cascade mask rcnn get empty mask(all 0), but python give right result. #2404

Open
newforrestgump001 opened this issue Mar 13, 2024 · 1 comment
Assignees

Comments

@newforrestgump001
Copy link

newforrestgump001 commented Mar 13, 2024

infer_mask_rcnn.cc get empty mask(all 0),the detection box is right, but python test bed gives right mask result. Thank you a lot!

@newforrestgump001
Copy link
Author

the shell to reproduce the issue:

1、python tools/infer.py --config configs/mask_rcnn/mask_rcnn_r50_1x_coco.yml -o weights=mask_rcnn_r50_1x_coco.pdparams --infer_img=demo/000000014439_640x640.jpg

2 、python deploy/python/infer.py --config configs/mask_rcnn/mask_rcnn_r50_1x_coco.yml -o weights=output_inference3/mask_rcnn_r50_1x_coco/model --infer_img=demo/000000014439_640x640.jpg

3、./vision_detection_paddledetection_infer_mask_rcnn output_inference3/mask_rcnn_r50_1x_coco demo/000000014439_640x640.jpg 1

step 1 and 2 get the right result.
But step 3 only gets the detection box without the mask.

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

No branches or pull requests

2 participants