Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
Ba Tran c1d8ba56ed | 2 years ago | |
---|---|---|
.. | ||
src | 2 years ago | |
CMakeLists.txt | 2 years ago | |
README.md | 2 years ago |
This sample uses Cpp api of onnxruntime.
readonly ONNXRUNTIME_VERSION="v1.10.0"
git clone --recursive -b ${ONNXRUNTIME_VERSION} https://github.com/Microsoft/onnxruntime
./build.sh --config RelWithDebInfo --build_shared_lib --skip_tests --parallel `nproc`
cd build/Linux/RelWithDebInfo
make install
opencv
sudo apt-get install libopencv-dev
mkdir build && cd build && cmake ../ && make -j`nproc`
wget https://paddleseg.bj.bcebos.com/dygraph/demo/cityscapes_demo.png
Export PaddleSeg Model to onnx format
You can download the bisenetv2 onnx model for this demo directly from the following url:
wget https://github.com/PaddlePaddle/PaddleSeg/files/7918707/bisenetv2_cityscapes.zip && unzip bisenetv2_cityscapes.zip
./build/onnxruntime_cpp_inference_demo_app /path/to/test/image /path/to/onnx/model
The result will be saved as out_img.jpg
飞桨高性能图像分割开发套件,端到端完成从训练到部署的全流程图像分割应用。
https://github.com/PaddlePaddle/PaddleSeg
Python Markdown Text Shell Java other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》