mmdeploy/docs/zh_cn/build.md
lvhan028 116d2316fc
Update build doc (#203)
* check in initial version of linux build documents

* update en/build/linux.md

* remove line break

* update build doc

* check in build documents in Chinese

* reorg chapter

* update build documents for windows platform

* update zh_cn/windows.md

* simplify build commands

* update build docs

* update build.md

* update

* reorg the chapters

* refine words

* correct the commands for windows build

* correct build commands for windows

* Trim Trailing Whitespace

* use prebuilt cmake instead of building it from source

* move <br> bewtween <pre><code> and </code></pre> cuz it isn't rendered correctly in github

* add build chapter about torchscript

* rebase master and update android

* fix lint

* correct the command of building ppl.cv
2022-03-28 13:45:08 +08:00

1.1 KiB

安装 MMdeploy

下载代码仓库 MMDeploy

git clone -b master git@github.com:open-mmlab/mmdeploy.git MMDeploy
cd MMDeploy
git submodule update --init --recursive

提示:

  • 如果由于网络等原因导致拉取仓库子模块失败,可以尝试通过如下指令手动再次安装子模块:

    git clone git@github.com:NVIDIA/cub.git third_party/cub
    cd third_party/cub
    git checkout c3cceac115
    
    # 返回至 third_party 目录, 克隆 pybind11
    cd ..
    git clone git@github.com:pybind/pybind11.git pybind11
    cd pybind11
    git checkout 70a58c5
    
  • 如果以 SSH 方式 git clone 代码失败,您可以尝试使用 HTTPS 协议下载代码:

    git clone -b master https://github.com/open-mmlab/mmdeploy.git MMDeploy
    cd MMDeploy
    git submodule update --init --recursive
    

编译 MMDeploy

根据您的目标平台,点击如下对应的链接,按照说明编译 MMDeploy