mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
* [Feature]: Add github prebuild workflow after new release. (#1852) * add prebuild dockerfile * add prebuild test workflw * update * update * rm other workflow for test * Update docker image * add win1o prebuild * add test prebuild * add windows scripts in prebuilt package * add linux scripts in prebuilt package * generate_build_config.py * fix cudnn search * fix env * fix script * fix rpath * fix cwd * fix windows * fix lint * windows prebuild ci * linux prebuild ci * fix * update trigger * Revert "rm other workflow for test" This reverts commit 0a0387275014efab71046d33a0e52904672b4012. * update sdk build readme * update prebuild * fix dll deps for python >= 3.8 on windows * fix ci * test prebuild * update test script to avoid modify upload folder * add onnxruntime.dll to mmdeploy_python * update prebuild workflow * update prebuild * Update loader.cpp.in * remove exists prebuild files * fix opencv env * update cmake options for mmdeploy python build * remove test code * fix lint --------- Co-authored-by: RunningLeon <mnsheng@yeah.net> Co-authored-by: RunningLeon <maningsheng@sensetime.com> * rename mmdeploy_python -> mmdeploy_runtime * test master prebuild * fix trt net build * Revert "test master prebuild" This reverts commit aad5258648f5f2c410c965b295c309fd1166da22. * add master branch * fix linux set_env script * update package_tools docs * fix gcc 7.3 aligned_alloc * comment temporarily as text_det_recog can't be built with prebuild package built under manylinux --------- Co-authored-by: RunningLeon <mnsheng@yeah.net> Co-authored-by: RunningLeon <maningsheng@sensetime.com>
Precompiled package
This document is going to describe the way to build MMDeploy package.
Prerequisites
-
Download and install Miniconda from the official website.
-
Create conda environments for python 3.6, 3.7, 3.8, 3.9 and 3.10, respectively.
for PYTHON_VERSION in 3.6 3.7 3.8 3.9 3.10 do conda create --name mmdeploy-$PYTHON_VERSION python=$PYTHON_VERSION -y done
-
Prepare MMDeploy dependencies
Please follow the build-on-Linux guide or build-on-Windows guide to install dependencies of MMDeploy, including PyTorch, MMCV, OpenCV, ppl.cv, ONNX Runtime and TensorRT.
Make sure the environment variables
pplcv_DIR
,ONNXRUNTIME_DIR
,TENSORRT_DIR
,CUDNN_DIR
andCUDA_TOOLKIT_ROOT_DIR
are exported.
Run precompiled command
-
On Linux platform,
conda activate mmdeploy-3.6 pip install pyyaml packaging cd the/root/path/of/mmdeploy python tools/package_tools/generate_build_config.py --backend 'ort' \ --system linux --build-mmdeploy --device cpu --build-sdk \ --build-sdk-monolithic --build-sdk-python --sdk-dynamic-net \ --output config.yml python tools/package_tools/mmdeploy_builder.py --config config.yml --output-dir pack
-
On Windows platform, open
Anaconda Powershell Prompt
from the start menu and execute:conda activate mmdeploy-3.6 pip install pyyaml packaging cd the/root/path/of/MMDeploy python tools/package_tools/generate_build_config.py --backend 'ort' \ --system windows --build-mmdeploy --device cpu --build-sdk \ --build-sdk-monolithic --build-sdk-python --sdk-dynamic-net \ --output config.yml python tools/package_tools/mmdeploy_builder.py --config config.yml --output-dir pack