FastDeploy icon indicating copy to clipboard operation
FastDeploy copied to clipboard

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

Open newforrestgump001 opened this issue 1 year ago • 1 comments

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 avatar Mar 13 '24 05:03 newforrestgump001

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.

newforrestgump001 avatar Mar 14 '24 01:03 newforrestgump001