how to match bbox and mask in instance seg model deployed by mmdeploy_runtime #2730
Unanswered
huofenghuang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I deploy an instance segmentation model by mmdeploy runtime api, I do not know how to deal mask because of it's size can't match the bbox. So, how can I get the exact mask ? Below is the code and debug info:
img = np.array(Image.open("origin.png").convert("RGB"))
detector = Detector(model_path='/data/mmdeploy-main/work_dir/ins-seg-fp16', device_name='cuda', device_id=0)
dets, labels, masks = detector(img)
Beta Was this translation helpful? Give feedback.
All reactions