PaddlePaddle / FastDeploy

⚡️An Easy-to-use and Fast Deep Learning Model Deployment Toolkit for ☁️Cloud 📱Mobile and 📹Edge. Including Image, Video, Text and Audio 20+ main stream scenarios and 150+ SOTA models with end-to-end optimization, multi-platform and multi-framework support.
https://www.paddlepaddle.org.cn/fastdeploy
Apache License 2.0
2.81k stars 441 forks source link

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

Open newforrestgump001 opened 3 months ago

newforrestgump001 commented 3 months ago

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 commented 3 months ago

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.