1. Run CMU pose demo
Platform: xavier, Jetpack 4.3 with DeepStream 4.0.2
Notes:
- Porting to Tesla/x86 platform should be easy.
- CUDA_cublas_device_LIBRARY NOTFOUND issue -> Solution
- Refer to
openpose/scripts/ubuntu/install_deps.sh
to install deps libs. - Refer to
openpose/models/getModels.sh
to fetch models - Build.
$ cmake -D CMAKE_BUILD_TYPE=Debug .. $ make -j4
- These demos can work.
$ ./build/examples/openpose/openpose.bin $ ./build/examples/tutorial_api_cpp/01_body_from_image_default.bin $ ...
It show like this.
Model: pose/coco/pose_iter_440000.caffemodel
, pose/coco/pose_deploy_linevec.prototxt
Pipeline:
filesrc -> jpegparse -> nvv4l2decoder -> nvstreammux -> nvinfer (openpose and 18 parts parse) nvsegvidsual -> nvmultistreamtiler -> (nvegltransform) -> nveglglessink
$ cd libs/nvinfer
$ make
Backup /opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_infer.so
$ sudo ln -sf $(pwd)/libnvds_infer.so /opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_infer.so
$ cd openpose_app
$ make
Change nvinfer_config.txt "model-file" and "proto-file" to be your path
model-file=
proto-file=
$ ./openpose-app ./nvinfer_config.txt COCO_val2014_000000000564.jpg
Add dsexample plugin after nvinfer and do resize_merge, nms and BodyPartConnector, and show result by nvosd like the below.