Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] update build doc for jetsons #1621

Merged
merged 3 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ workflows:
csrc/.* lint_only false
demo/csrc/.* lint_only false
docker/.* lint_only false
docs/.* lint_only true
mmdeploy/.* lint_only false
requirements/.* lint_only false
tests/.* lint_only false
Expand Down
18 changes: 16 additions & 2 deletions docs/en/01-how-to-build/jetsons.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
In this chapter, we introduce how to install MMDeploy on NVIDIA Jetson platforms, which we have verified on the following modules:

- Jetson Nano
- Jetson Xavier NX
- Jetson TX2
- Jetson AGX Xavier

Expand Down Expand Up @@ -174,12 +173,27 @@ It takes about 1 hour 40 minutes to install MMCV on a Jetson Nano. So, please be

#### Install ONNX

Don't install the latest ONNX. The recommended ONNX version is 1.10.0.

```shell
# Execute one of the following commands
pip install onnx
pip install onnx==1.10.0
conda install -c conda-forge onnx
```

If the installation failed and showed the following error:

```
CMake Error at CMakeLists.txt:299 (message):
Protobuf compiler not found
```

Please install dependencies:

```shell
sudo apt-get install protobuf-compiler libprotoc-dev
```

#### Install h5py and pycuda

Model Converter employs HDF5 to save the calibration data for TensorRT INT8 quantization and needs `pycuda` to copy device memory.
Expand Down
17 changes: 16 additions & 1 deletion docs/zh_cn/01-how-to-build/jetsons.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,27 @@ conda activate mmdeploy

- 安装 ONNX

不要安装最新的 ONNX,推荐的 ONNX 版本是 1.10.0。

```shell
# 以下方式二选一
python3 -m pip install onnx
python3 -m pip install onnx==1.10.0
conda install -c conda-forge onnx
```

如果安装时,出现如下的报错信息:

```
CMake Error at CMakeLists.txt:299 (message):
Protobuf compiler not found
```

请根据如下指令,安装依赖项:

```shell
sudo apt-get install protobuf-compiler libprotoc-dev
```

- 安装 h5py 和 pycuda

Model Converter 使用 HDF5 存储 TensorRT INT8 量化的校准数据;需要 pycuda 拷贝显存
Expand Down