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

How to inference with model(onnx) converted by MMdeploy? #138

Open
Monalsingh opened this issue Aug 3, 2022 · 0 comments
Open

How to inference with model(onnx) converted by MMdeploy? #138

Monalsingh opened this issue Aug 3, 2022 · 0 comments

Comments

@Monalsingh
Copy link

I am trying to use MMpose in the Nvidia triton server but it does not support PyTorch model, it supports torchscript and ONNX, and a few others. So, I have converted MMpose mobilenetv2 model to ONNX using MMdeploy.

My questions are:

  1. How to use the converted (ONNX) model in the MMpose framework?

Triton uses its own way to inference the model.
Example:

> triton_client.infer(model_name,model_version=model_version,
> inputs=input, outputs=output)

MMdeploy uses its own way to inference the model:
Example:

> from mmdeploy_python import PoseDetector
> detector = PoseDetector(
> model_path=args.model_path, device_name=args.device_name, device_id=0)
  1. How am I suppose the load the model using Triton way and not using PoseDetector function by mmdeploy?

I am stuck here from long time
bodypose_triton
.

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