PaddlePaddle / PaddlePaddle/FastDeploy
Error in launch Streamer PP-YOLOE C++ Example
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.7k
- Forks
- 756
- Avg merge
- 19h 28m
- Merged PRs (30d)
- 4
Description
环境
- 【FastDeploy版本】: release/1.0.7 分支
- 【系统平台】: Linux x64(Ubuntu 20.04)
- 【硬件】: Nvidia GPU 3080, 环境为 docker
nvcr.io/nvidia/deepstream:6.1.1-devel - 【编译语言】: C++
- 【编译命令】
# 编译 FastDeploy (opencv 版本 4.6.0)
cd FastDeploy
mkdir -p build && cd build
cmake .. \
-D WITH_GPU=ON \
-D ENABLE_ORT_BACKEND=ON \
-D ENABLE_TRT_BACKEND=ON \
-D ENABLE_VISION=ON \
-D CUDA_DIRECTORY=/usr/local/cuda \
-D TRT_DIRECTORY=/root/workspace/TensorRT-8.4.1.5 \
-D OPENCV_DIRECTORY=/root/workspace/opencv/lib/cmake/opencv4 \
-D CMAKE_INSTALL_PREFIX=./install
make -j$(nproc) && make install
# 编译 fdstreamer
cd FastDeploy/streamer/
mkdir -p build && cd build
cmake ..\
-D ENABLE_DEEPSTREAM=ON \
-D FASTDEPLOY_INSTALL_DIR=../build/install
make -j$(nproc)
# 编译 ppyoloe example
cd FastDeploy/streamer/examples/ppyoloe/cpp/
mkdir -p build && cd build
cmake -D FASTDEPLOY_INSTALL_DIR=/root/workspace/FastDeploy/build/install ..
make -j$(nproc)
# 执行
cd FastDeploy/streamer/examples/ppyoloe/cpp/
mv ./build/streamer_demo .
./streamer_demo
- 【报错内容】
root@c560e41fc7fc:~/workspace/FastDeploy/streamer/examples/ppyoloe/cpp# ./streamer_demo
app
nvurisrcbin_list
nvstreammux
nvinfer
nvtracker
nvmultistreamtiler
nvosdbin
nvvideoencfilesinkbin
[INFO] /root/workspace/FastDeploy/streamer/src/gstreamer/utils.cc(60)::CreatePipeline Trying to launch pipeline: nvurisrcbin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_ride_bike.mov gpu-id=0 ! mux.sink_0 nvurisrcbin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_ride_bike.mov gpu-id=0 ! mux.sink_1 nvurisrcbin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_ride_bike.mov gpu-id=0 ! mux.sink_2 nvurisrcbin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_ride_bike.mov gpu-id=0 ! mux.sink_3 nvstreammux name=mux gpu-id=0 batch-size=4 width=1920 height=1080 batched-push-timeout=40000 ! nvinfer gpu-id=0 config-file-path=nvinfer_config.txt ! nvtracker gpu-id=0 tracker-width=640 tracker-height=640 ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so ll-config-file=/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/config_tracker_NvDCF_perf.yml enable-batch-process=true ! nvmultistreamtiler gpu-id=0 rows=2 columns=2 ! nvosdbin gpu-id=0 ! nvvideoencfilesinkbin gpu-id=0 bitrate=4000 output-file=out.mp4
dsnvvideoencfilesinkbin0
gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so
gstnvtracker: Batch processing is ON
gstnvtracker: Past frame output is OFF
!![ERROR] yaml-cpp: error at line 25, column 26: bad conversion
An exception occurred. yaml-cpp: error at line 25, column 26: bad conversion
gstnvtracker: Failed to initialize tracker context!
gstnvtracker:: Failed to create batch context. Shutting down processing.
Running...
^C
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the tracker configuration referenced in the launch command, especially the YAML error at line 25, column 26, then inspect streamer/src/gstreamer/utils.cc around CreatePipeline. Run streamer_demo using the provided DeepStream setup and verify that the tracker initializes successfully without the yaml-cpp conversion error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-vision, stream-processing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100