Through user investigation, we know that most users are already familiar with python and torch before using mmdeploy. Therefore we provide scripts to simplify mmdeploy installation.
Assuming you already have
conda
or pyenv
)run this script to install mmdeploy + ncnn backend, nproc
is not compulsory.
$ cd /path/to/mmdeploy
$ python3 tools/scripts/build_ubuntu_x64_ncnn.py
..
A sudo password may be required during this time, and the script will try its best to build and install mmdeploy SDK and demo:
make
job number, whether use root
and try to fix python3 -m pip
The script will also try to avoid affecting host environment:
mmdeploy-dep
directory at the same level as mmdeployThe script will eventually execute python3 tools/check_env.py
, the successful installation should display the version number of the corresponding backend and ops_is_available: True
, for example:
$ python3 tools/check_env.py
..
2022-09-13 14:49:13,767 - mmdeploy - INFO - **********Backend information**********
2022-09-13 14:49:14,116 - mmdeploy - INFO - onnxruntime: 1.8.0 ops_is_avaliable : True
2022-09-13 14:49:14,131 - mmdeploy - INFO - tensorrt: 8.4.1.5 ops_is_avaliable : True
2022-09-13 14:49:14,139 - mmdeploy - INFO - ncnn: 1.0.20220901 ops_is_avaliable : True
2022-09-13 14:49:14,150 - mmdeploy - INFO - pplnn_is_avaliable: True
..
Here is the verified installation script. If you want mmdeploy to support multiple backends at the same time, you can execute each script once:
script | OS version |
---|---|
build_ubuntu_x64_ncnn.py | 18.04/20.04 |
build_ubuntu_x64_ort.py | 18.04/20.04 |
build_ubuntu_x64_pplnn.py | 18.04/20.04 |
build_ubuntu_x64_torchscript.py | 18.04/20.04 |
build_ubuntu_x64_tvm.py | 18.04/20.04 |
build_jetson_orin_python38.sh | JetPack5.0 L4T 34.1 |
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》