mmdeploy/docs/zh_cn/01-how-to-build/build_from_source.md
Chen Xin c04dcd2c62
Support risc-v platform (#910)
* add ppl.nn riscv engine

* update ppl.nn riscv engine

* udpate riscv service (ncnn backend)

* update _build_wrapper for ncnn

* fix build

* fix lint

* update default uri

* update file structure & add cn doc

* remove copy input data

* update docs

* remove ncnn server

* fix docs

* update zh doc

* update toolchain

* remove unused

* update doc

* update doc

* update doc

* rename cross build dirname

* add riscv.md to build_from_source.md

* update cls model

* test ci

* test ci

* test ci

* test ci

* test ci

* update ci

* update ci
2022-08-26 13:54:40 +08:00

1.1 KiB

源码手动安装

如果网络良好,我们建议使用 docker一键式脚本 方式。

下载

git clone -b master git@github.com:open-mmlab/mmdeploy.git --recursive

FAQ

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

    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