Closed CerPhd closed 1 year ago
For windows, if you wan't to inference by onnxruntiem-gpu, you have to copy the onnxruntime library to the mmdeploy-runtime installation directory.
You can download onnxruntime library there: https://github.com/microsoft/onnxruntime/releases/download/v1.8.1/onnxruntime-win-gpu-x64-1.8.1.zip
You can find mmdeploy-runtime installation directory by:
python -c 'import mmdeploy; print(mmdeploy)'
Thank you !!
Checklist
Describe the bug
Hi everyone I have installed all the libraries needed to inference a video with mmdeploy. If I use cpu for extrapolating human pose from a video (CODE1) everything is fine. When I use cuda (CODE2) , I have Error1. I thought maybe cuda was not installed properly, but when I run the sample code CODE3 , it is working! Thank you for your attention.
Reproduction
CODE1 python pose_tracker.py cpu rtmpose-ort/rtmdet-nano/ rtmpose-ort/rtmpose-m/ cam2.mp4
CODE2 python pose_tracker.py cuda rtmpose-ort/rtmdet-nano/ rtmpose-ort/rtmpose-m/ cam2.mp4
CODE3 (sample code from tutorial, from that I suppose that cuda is properly working) python tools/deploy.py configs/mmpose/pose-detection_simcc_tensorrt_dynamic-256x192.py C:\Users\lucac\src\mmpose\configs\wholebody\2d_kpt_sview_rgb_img\topdown_heatmap\coco-wholebody\tcformer_coco_wholebody_256x192.py https://download.openmmlab.com/mmpose/top_down/tcformer/tcformer_coco-wholebody_256x192-a0720efa_20220627.pth C:\Users\lucac\Pictures\ppp.jpg --work-dir rtmpose-trt/rtmpose-m --device cuda:0 --show --dump-info
Environment
Error traceback