From e97463c96c4d3586bb06fb33ec72b1cb392e89f6 Mon Sep 17 00:00:00 2001 From: hua-yuxiu Date: Mon, 18 Aug 2025 15:04:56 +0800 Subject: [PATCH] Update DrivingSDK Readme --- README.md | 32 ++++++++++++------------------ model_examples/BEVFormer/README.md | 4 +--- 2 files changed, 14 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 8b94daf5..0649285e 100644 --- a/README.md +++ b/README.md @@ -18,22 +18,28 @@ Driving SDK是基于昇腾NPU平台开发的适用于自动驾驶场景的算子 ## 从发布包安装 当前并未正式发布whl包 ,请参考源码安装方式。 ## 从源码安装 -1. 克隆原始仓。 +#### 1. 克隆原始仓。 ```shell git clone https://gitee.com/ascend/DrivingSDK.git -b branch_v7.1.RC1 ``` -2. 编译Driving SDK。 +#### 2. 编译Driving SDK。 > 注意:请在仓库根目录下执行编译命令 ```shell bash ci/build.sh --python=3.8 ``` +参数`--python`指定编译过程中使用的python版本,支持 3.8 及以上版本,缺省值为 3.8。请参考[编译指导](docs/get_started/compile.md)获取更多编译细节。 + 生成的whl包在`DrivingSDK/dist`目录下, 命名规则为`mx_driving-1.0.0+git{commit_id}-cp{python_version}-linux_{arch}.whl`。 -请参考[编译指导](docs/get_started/compile.md)获取更多编译细节。 -参数`--python`指定编译过程中使用的python版本,支持3.8及以上: -| 参数 | 取值范围 | 说明 | 缺省值 | 备注 | -| ------ | ------------------------------------------------------------ | ------------------------------ | ------ | ---------------------------------------------- | -| python | pytorch2.1.0及以上版本,支持3.8及以上 | 指定编译过程中使用的python版本 | 3.8 | +#### 3. 安装Driving SDK。 +```shell+ +cd DrivingSDK/dist +pip3 install mx_driving-1.0.0+git{commit_id}-cp{python_version}-linux_{arch}.whl +``` +如需要保存安装日志,可在`pip3 install`命令后添加`--log `参数,并对您指定的目录做好权限控制。 + + +#### 配套关系 支持的CPU架构,Python,PyTorch和torch_npu版本对应关系如下: @@ -61,18 +67,6 @@ bash ci/build.sh --python=3.8 -3. 安装Driving SDK。 -```shell+ -cd DrivingSDK/dist -pip3 install mx_driving-1.0.0+git{commit_id}-cp{python_version}-linux_{arch}.whl -``` -如需要保存安装日志,可在`pip3 install`命令后添加`--log `参数,并对您指定的目录做好权限控制。 -# 卸载 -Pytorch 框架训练环境的卸载请参考昇腾官方文档[Pytorch框架训练环境卸载](https://hiascend.com/document/detail/zh/ModelZoo/pytorchframework/ptes/ptes_00032.html)。 -Driving SDK的卸载只需执行以下命令: -```shell -pip3 uninstall mx_driving -``` # 快速上手 ```python diff --git a/model_examples/BEVFormer/README.md b/model_examples/BEVFormer/README.md index f9bcaf1f..a810f2ae 100644 --- a/model_examples/BEVFormer/README.md +++ b/model_examples/BEVFormer/README.md @@ -40,9 +40,7 @@ BEVFormer 通过提取环视相机采集到的图像特征,并将提取的环 | :--------: | | PyTorch 2.1 | -- 安装 Driving SDK 加速库 - - 参考:https://gitee.com/ascend/DrivingSDK/blob/branch_v7.1.RC1/README.md +- 安装 [Driving SDK 加速库](https://gitee.com/ascend/DrivingSDK/tree/branch_v7.1.RC1/README.md) - 克隆代码仓到当前目录 ```shell -- Gitee