mmdeploy/tools/package_tools
RunningLeon c73756366e
bump version to v0.14.0 (#1943)
* update

* bump version

* Update README.md

* fix conflicts

* fix ci

* fix circleci

* upgrade to ubuntu20.04 for github ci

* update

* install glibc

* try to fix cuda build

* try to fix cuda build

* fix build-cu102 && build_cpu_sdk

* revert to setup-python@v2

* try to fix pplnn

* fix protobuf

---------

Co-authored-by: Xin Chen <irexyc@gmail.com>
2023-04-05 14:28:00 +08:00
..
packaging bump version to v0.14.0 (#1943) 2023-04-05 14:28:00 +08:00
scripts Update get_started.md(master) (#1950) 2023-04-04 11:00:53 +08:00
test Update get_started.md(master) (#1950) 2023-04-04 11:00:53 +08:00
README.md
generate_build_config.py Update get_started.md(master) (#1950) 2023-04-04 11:00:53 +08:00
mmdeploy_builder.py

README.md

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 and CUDA_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