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

[Bug] When I use mmdeploy_runtime for object detection inference #3159

Open
2 tasks done
tankchenggeng opened this issue Nov 25, 2024 · 0 comments
Open
2 tasks done

Comments

@tankchenggeng
Copy link

Prerequisite

Environment

Not Run

Reproduces the problem - code sample

from mmdeploy_runtime import Detector, PoseDetector

detector = Detector(model_path=det_model_path, device_name=device_name)
bboxes, labels, _ = detector(image)

filter detections

keep = np.logical_and(labels == 0, bboxes[..., 4] > bbox_thr)
bboxes = bboxes[keep, :4]

Reproduces the problem - command or script

just code demo

Reproduces the problem - error message

No

Additional information

I have two questions that I don't know how to do:

  1. I want to use image mask apply to detector, how should I do?
    2.I want to detect just for person, rather than filter with label==0
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

1 participant