diff --git a/TensorFlow/built-in/cv/detection/SSD-Resnet50V1-FPN_ID1463_for_TensorFlow/README.md b/TensorFlow/built-in/cv/detection/SSD-Resnet50V1-FPN_ID1463_for_TensorFlow/README.md index 18a869bd3151439ab7757825aa61c2a9d02f04a6..e3c21915e52edc5f0aec4be74d24cbce45df5599 100644 --- a/TensorFlow/built-in/cv/detection/SSD-Resnet50V1-FPN_ID1463_for_TensorFlow/README.md +++ b/TensorFlow/built-in/cv/detection/SSD-Resnet50V1-FPN_ID1463_for_TensorFlow/README.md @@ -1,28 +1,36 @@ -# SSD-Resnet50V1-FPN_for_TensorFlow +- [基本信息](#基本信息.md) +- [概述](#概述.md) +- [训练环境准备](#训练环境准备.md) +- [快速上手](#快速上手.md) +- [迁移学习指导](#迁移学习指导.md) +- [高级参考](#高级参考.md) -## 目录 -* [基本信息](#基本信息) -* [概述](#概述) -* [训练环境准备](#训练环境准备) -* [快速上手](#快速上手) -* [高级参考](#高级参考) - -## 基本信息 +

基本信息

**发布者(Publisher):Huawei** + **应用领域(Application Domain):Object Detection + **版本(Version):1.1 + **修改时间(Modified) :2021.07.19 + **大小(Size):6M + **框架(Framework):TensorFlow 1.15.0 + **模型格式(Model Format):ckpt + **精度(Precision):Mixed + **处理器(Processor):昇腾910 + **应用级别(Categories):Official + **描述(Description):基于tensorflow实现,以Resnet50为backbone的SSD目标检测网络。 -## 概述 +

概述

SSD-Resnet50V1-FPN将边界框的输出空间离散为一组默认框,每个特征地图位置的纵横比和比例不同。在预测时,网络为每个默认框中每个对象类别生成分数,并对该框进行调整,以更好地匹配对象形状。此外,该网络结合了来自不同分辨率的多个特征图的预测,从而自然地处理不同尺寸的物体 @@ -36,7 +44,7 @@ SSD-Resnet50V1-FPN将边界框的输出空间离散为一组默认框,每个 - 适配昇腾 AI 处理器的实现: - https://gitee.com/ascend/modelzoo/tree/master/built-in/TensorFlow/Research/cv/detection/SSD-Resnet50V1-FPN_ID1463_for_TensorFlow + https://gitee.com/ascend/ModelZoo-TensorFlow/tree/master/TensorFlow/built-in/cv/detection/SSD-Resnet50V1-FPN_ID1463_for_TensorFlow - 通过Git获取对应commit\_id的代码方法如下: @@ -77,34 +85,32 @@ SSD-Resnet50V1-FPN将边界框的输出空间离散为一组默认框,每个 | 分布式训练 | 是 | | 混合精度 | 是 | +## 混合精度训练 -## 训练环境准备 +昇腾910 AI处理器提供自动混合精度功能,可以针对全网中float32数据类型的算子,按照内置的优化策略,自动将部分float32的算子降低精度到float16,从而在精度损失很小的情况下提升系统性能并减少内存使用。 -1. 硬件环境准备请参见各硬件产品文档"[驱动和固件安装升级指南]( https://support.huawei.com/enterprise/zh/category/ai-computing-platform-pid-1557196528909)"。需要在硬件设备上安装与CANN版本配套的固件与驱动。 -2. 宿主机上需要安装Docker并登录[Ascend Hub中心](https://ascendhub.huawei.com/#/detail?name=ascend-tensorflow-arm)获取镜像。 +## 开启混合精度 +相关代码示例。 - 当前模型支持的镜像列表如[表1](#zh-cn_topic_0000001074498056_table1519011227314)所示。 +``` + config_proto = tf.ConfigProto(allow_soft_placement=True) + custom_op = config_proto.graph_options.rewrite_options.custom_optimizers.add() + custom_op.name = 'NpuOptimizer' + custom_op.parameter_map["use_off_line"].b = True + custom_op.parameter_map["precision_mode"].s = tf.compat.as_bytes("allow_mix_precision") + config_proto.graph_options.rewrite_options.remapping = RewriterConfig.OFF + session_config = npu_config_proto(config_proto=config_proto) +``` - **表 1** 镜像列表 +

训练环境准备

+ +- 硬件环境和运行环境准备请参见《[CANN软件安装指南](https://support.huawei.com/enterprise/zh/ascend-computing/cann-pid-251168373?category=installation-update)》 +- 运行以下命令安装依赖。 +``` +pip3 install requirements.txt +``` +说明:依赖配置文件requirements.txt文件位于模型的根目录 - - - - - - - - - - - -

镜像名称

-

镜像版本

-

配套CANN版本

-
-

21.0.2

-

5.0.2

-
## 安装依赖 @@ -114,7 +120,7 @@ SSD-Resnet50V1-FPN将边界框的输出空间离散为一组默认框,每个 3、mpl_toolkits -## 快速上手 +

快速上手

### 数据集准备 @@ -126,10 +132,11 @@ download_all.sh nvidia_ssd ### 模型训练 - 单击“立即下载”,并选择合适的下载方式下载源码包。 +- 开始训练 + + 1. 启动训练之前,首先要配置程序运行相关环境变量。 -- 启动训练之前,首先要配置程序运行相关环境变量。 - - 环境变量配置信息参见: + 环境变量配置信息参见: [Ascend 910训练平台环境变量设置](https://gitee.com/ascend/modelzoo/wikis/Ascend%20910%E8%AE%AD%E7%BB%83%E5%B9%B3%E5%8F%B0%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F%E8%AE%BE%E7%BD%AE?sort_id=3148819) @@ -162,9 +169,9 @@ download_all.sh nvidia_ssd bash examples/SSD320_evaluate.sh /checkpoints/ ``` -## 高级参考 +

高级参考

-### 核心脚本和示例代码 +## 脚本和示例代码 ``` ├── README.md //代码说明文档 @@ -238,3 +245,8 @@ download_all.sh nvidia_ssd --model_dir 训练模型存放路径 --checkpoint_dir 待评测的模型路径(仅eval模式使用) ``` + +## 训练过程 +``` + NA +``` \ No newline at end of file diff --git a/TensorFlow/built-in/cv/image_synthesis/DCGAN_ID2196_for_TensorFlow/README.md b/TensorFlow/built-in/cv/image_synthesis/DCGAN_ID2196_for_TensorFlow/README.md index 66bb6a2f51816f0a59606e675955285affb23717..eefdb8485dfe27139cd8f0fd6376a4b29898cb15 100644 --- a/TensorFlow/built-in/cv/image_synthesis/DCGAN_ID2196_for_TensorFlow/README.md +++ b/TensorFlow/built-in/cv/image_synthesis/DCGAN_ID2196_for_TensorFlow/README.md @@ -45,9 +45,9 @@ - 适配昇腾 AI 处理器的实现: - https://gitee.com/ascend/modelzoo/tree/master/built-in/TensorFlow/Research/cv/image_synthesis/DCGAN_ID2196_for_TensorFlow + https://gitee.com/ascend/ModelZoo-TensorFlow/tree/master/TensorFlow/built-in/cv/image_synthesis/DCGAN_ID2196_for_TensorFlow -- 通过Git获取对应commit_id的代码方法如下: +- 通过Git获取对应commit\_id的代码方法如下: git clone {repository_url} # 克隆仓库的代码 cd {repository_name} # 切换到模型的代码仓目录 @@ -90,34 +90,14 @@ custom_op.parameter_map["precision_mode"].s = tf.compat.as_bytes("allow_mix_precision") ``` -

训练环境准备

-1. 硬件环境准备请参见各硬件产品文档"[驱动和固件安装升级指南]( https://support.huawei.com/enterprise/zh/category/ai-computing-platform-pid-1557196528909)"。需要在硬件设备上安装与CANN版本配套的固件与驱动。 -2. 宿主机上需要安装Docker并登录[Ascend Hub中心](https://ascendhub.huawei.com/#/detail?name=ascend-tensorflow-arm)获取镜像。 - - 当前模型支持的镜像列表如[表1](#zh-cn_topic_0000001074498056_table1519011227314)所示。 - - **表 1** 镜像列表 - - - - - - - - - - - - -

镜像名称

-

镜像版本

-

配套CANN版本

-
-

21.0.2

-

5.0.2

-
+- 硬件环境和运行环境准备请参见《[CANN软件安装指南](https://support.huawei.com/enterprise/zh/ascend-computing/cann-pid-251168373?category=installation-update)》 +- 运行以下命令安装依赖。 +``` +pip3 install requirements.txt +``` +说明:依赖配置文件requirements.txt文件位于模型的根目录

快速上手

diff --git a/TensorFlow/built-in/nlp/Roberta_ID2349_for_TensorFlow/README.md b/TensorFlow/built-in/nlp/Roberta_ID2349_for_TensorFlow/README.md index ae2c21ad150a9083981553b549bf7dd34ce2f5aa..2900302095108bda3e677b5af857b4290a76caf0 100644 --- a/TensorFlow/built-in/nlp/Roberta_ID2349_for_TensorFlow/README.md +++ b/TensorFlow/built-in/nlp/Roberta_ID2349_for_TensorFlow/README.md @@ -1,9 +1,9 @@ -- [基本信息](#基本信息.md) -- [概述](#概述.md) -- [训练环境准备](#训练环境准备.md) -- [快速上手](#快速上手.md) -- [迁移学习指导](#迁移学习指导.md) -- [高级参考](#高级参考.md) +- [基本信息](#基本信息.md) +- [概述](#概述.md) +- [训练环境准备](#训练环境准备.md) +- [快速上手](#快速上手.md) +- [迁移学习指导](#迁移学习指导.md) +- [高级参考](#高级参考.md)

基本信息

**发布者(Publisher):Huawei** @@ -44,9 +44,9 @@ - 适配昇腾 AI 处理器的实现: - https://gitee.com/ascend/modelzoo/tree/master/built-in/TensorFlow/Benchmark/nlp/Roberta_ID2349_for_TensorFlow + https://gitee.com/ascend/ModelZoo-TensorFlow/tree/master/TensorFlow/built-in/nlp/Roberta_ID2349_for_TensorFlow -- 通过Git获取对应commit_id的代码方法如下: +- 通过Git获取对应commit\_id的代码方法如下: git clone {repository_url} # 克隆仓库的代码 cd {repository_name} # 切换到模型的代码仓目录 @@ -88,34 +88,14 @@ custom_op.parameter_map["precision_mode"].s = tf.compat.as_bytes("allow_mix_precision") ``` -

训练环境准备

-1. 硬件环境准备请参见各硬件产品文档"[驱动和固件安装升级指南]( https://support.huawei.com/enterprise/zh/category/ai-computing-platform-pid-1557196528909)"。需要在硬件设备上安装与CANN版本配套的固件与驱动。 -2. 宿主机上需要安装Docker并登录[Ascend Hub中心](https://ascendhub.huawei.com/#/detail?name=ascend-tensorflow-arm)获取镜像。 - - 当前模型支持的镜像列表如[表1](#zh-cn_topic_0000001074498056_table1519011227314)所示。 - - **表 1** 镜像列表 - - - - - - - - - - - - -

镜像名称

-

镜像版本

-

配套CANN版本

-
-

21.0.2

-

5.0.2

-
+- 硬件环境和运行环境准备请参见《[CANN软件安装指南](https://support.huawei.com/enterprise/zh/ascend-computing/cann-pid-251168373?category=installation-update)》 +- 运行以下命令安装依赖。 +``` +pip3 install requirements.txt +``` +说明:依赖配置文件requirements.txt文件位于模型的根目录

快速上手

diff --git a/TensorFlow/built-in/nlp/Roberta_ID2366_for_TensorFlow/README.md b/TensorFlow/built-in/nlp/Roberta_ID2366_for_TensorFlow/README.md index 154d9c58fa96a7244975d0abe2658dfdc820103b..1dfa3c1897cc0aeb69db5cee153c9fc48888cafd 100644 --- a/TensorFlow/built-in/nlp/Roberta_ID2366_for_TensorFlow/README.md +++ b/TensorFlow/built-in/nlp/Roberta_ID2366_for_TensorFlow/README.md @@ -1,9 +1,9 @@ -- [基本信息](#基本信息.md) -- [概述](#概述.md) -- [训练环境准备](#训练环境准备.md) -- [快速上手](#快速上手.md) -- [迁移学习指导](#迁移学习指导.md) -- [高级参考](#高级参考.md) +- [基本信息](#基本信息.md) +- [概述](#概述.md) +- [训练环境准备](#训练环境准备.md) +- [快速上手](#快速上手.md) +- [迁移学习指导](#迁移学习指导.md) +- [高级参考](#高级参考.md)

基本信息

**发布者(Publisher):Huawei** @@ -44,9 +44,9 @@ - 适配昇腾 AI 处理器的实现: - https://gitee.com/ascend/modelzoo/tree/master/built-in/TensorFlow/Benchmark/nlp/Roberta_ID2366_for_TensorFlow + https://gitee.com/ascend/ModelZoo-TensorFlow/tree/master/TensorFlow/built-in/nlp/Roberta_ID2366_for_TensorFlow -- 通过Git获取对应commit_id的代码方法如下: +- 通过Git获取对应commit\_id的代码方法如下: git clone {repository_url} # 克隆仓库的代码 cd {repository_name} # 切换到模型的代码仓目录 @@ -90,34 +90,14 @@ session_config.graph_options.rewrite_options.memory_optimization = RewriterConfig.OFF ``` -

训练环境准备

-1. 硬件环境准备请参见各硬件产品文档"[驱动和固件安装升级指南]( https://support.huawei.com/enterprise/zh/category/ai-computing-platform-pid-1557196528909)"。需要在硬件设备上安装与CANN版本配套的固件与驱动。 -2. 宿主机上需要安装Docker并登录[Ascend Hub中心](https://ascendhub.huawei.com/#/detail?name=ascend-tensorflow-arm)获取镜像。 - - 当前模型支持的镜像列表如[表1](#zh-cn_topic_0000001074498056_table1519011227314)所示。 - - **表 1** 镜像列表 - - - - - - - - - - - - -

镜像名称

-

镜像版本

-

配套CANN版本

-
-

21.0.2

-

5.0.2

-
+- 硬件环境和运行环境准备请参见《[CANN软件安装指南](https://support.huawei.com/enterprise/zh/ascend-computing/cann-pid-251168373?category=installation-update)》 +- 运行以下命令安装依赖。 +``` +pip3 install requirements.txt +``` +说明:依赖配置文件requirements.txt文件位于模型的根目录

快速上手

diff --git a/TensorFlow/built-in/nlp/albert_xlarge_zh_ID2348_for_TensorFlow/README.md b/TensorFlow/built-in/nlp/albert_xlarge_zh_ID2348_for_TensorFlow/README.md index 2a5ae8606aa7be64d386e14e3ceb2dcbf91e579f..7e8a8b9060d01034d7be43c5681215aaaef846d0 100644 --- a/TensorFlow/built-in/nlp/albert_xlarge_zh_ID2348_for_TensorFlow/README.md +++ b/TensorFlow/built-in/nlp/albert_xlarge_zh_ID2348_for_TensorFlow/README.md @@ -1,9 +1,9 @@ -- [基本信息](#基本信息.md) -- [概述](#概述.md) -- [训练环境准备](#训练环境准备.md) -- [快速上手](#快速上手.md) -- [迁移学习指导](#迁移学习指导.md) -- [高级参考](#高级参考.md) +- [基本信息](#基本信息.md) +- [概述](#概述.md) +- [训练环境准备](#训练环境准备.md) +- [快速上手](#快速上手.md) +- [迁移学习指导](#迁移学习指导.md) +- [高级参考](#高级参考.md)

基本信息

**发布者(Publisher):Huawei** @@ -43,15 +43,17 @@ - 适配昇腾 AI 处理器的实现: - https://gitee.com/ascend/modelzoo/tree/master/built-in/TensorFlow/Benchmark/nlp/albert_xlarge_zh_ID2348_for_TensorFlow + https://gitee.com/ascend/ModelZoo-TensorFlow/tree/master/TensorFlow/built-in/nlp/albert_xlarge_zh_ID2348_for_TensorFlow -- 通过Git获取对应commit_id的代码方法如下: +- 通过Git获取对应commit\_id的代码方法如下: - git clone {repository_url} # 克隆仓库的代码 - cd {repository_name} # 切换到模型的代码仓目录 - git checkout {branch} # 切换到对应分支 - git reset --hard {commit_id} # 代码设置到对应的commit_id - cd {code_path} # 切换到模型代码所在路径,若仓库下只有该模型,则无需切换 + ``` + git clone {repository_url} # 克隆仓库的代码 + cd {repository_name} # 切换到模型的代码仓目录 + git checkout {branch} # 切换到对应分支 + git reset --hard {commit_id} # 代码设置到对应的commit_id + cd {code_path} # 切换到模型代码所在路径,若仓库下只有该模型,则无需切换 + ``` ## 默认配置 @@ -99,38 +101,19 @@

训练环境准备

-1. 硬件环境准备请参见各硬件产品文档"[驱动和固件安装升级指南]( https://support.huawei.com/enterprise/zh/category/ai-computing-platform-pid-1557196528909)"。需要在硬件设备上安装与CANN版本配套的固件与驱动。 -2. 宿主机上需要安装Docker并登录[Ascend Hub中心](https://ascendhub.huawei.com/#/detail?name=ascend-tensorflow-arm)获取镜像。 - - 当前模型支持的镜像列表如[表1](#zh-cn_topic_0000001074498056_table1519011227314)所示。 - - **表 1** 镜像列表 - - - - - - - - - - - - -

镜像名称

-

镜像版本

-

配套CANN版本

-
-

21.0.2

-

5.0.2

-
+- 硬件环境和运行环境准备请参见《[CANN软件安装指南](https://support.huawei.com/enterprise/zh/ascend-computing/cann-pid-251168373?category=installation-update)》 +- 运行以下命令安装依赖。 +``` +pip3 install requirements.txt +``` +说明:依赖配置文件requirements.txt文件位于模型的根目录

快速上手

## 数据集准备 -1. 用户需自行准备训练数据集,例如LCQMC数据集,可参考github源。 +1. 用户需自行准备训练数据集,例如LCQMC数据集,可参考github源获取。 2. 用户需提前下载预训练模型,参考github源里提供的albert_xlarge_zh_183k等模型下载方式 ## 模型训练 diff --git a/TensorFlow2/built-in/cv/image_classification/cutmix_ID2502_for_TensorFlow2.X/README.md b/TensorFlow2/built-in/cv/image_classification/cutmix_ID2502_for_TensorFlow2.X/README.md index d8b15668595f12d426c83566c3b3f77ceba51bf3..7f3c71a2741a3fb7c8b8a2607cdb9af5155b8a05 100644 --- a/TensorFlow2/built-in/cv/image_classification/cutmix_ID2502_for_TensorFlow2.X/README.md +++ b/TensorFlow2/built-in/cv/image_classification/cutmix_ID2502_for_TensorFlow2.X/README.md @@ -44,9 +44,9 @@ - 适配昇腾 AI 处理器的实现: - https://gitee.com/ascend/modelzoo/tree/master/built-in/TensorFlow2/Official/cv/image_classification/cutmix_ID2502_for_TensorFlow2.X + https://gitee.com/ascend/ModelZoo-TensorFlow/tree/master/TensorFlow2/built-in/cv/image_classification/cutmix_ID2502_for_TensorFlow2.X -- 通过Git获取对应commit_id的代码方法如下: +- 通过Git获取对应commit\_id的代码方法如下: git clone {repository_url} # 克隆仓库的代码 cd {repository_name} # 切换到模型的代码仓目录 @@ -81,34 +81,14 @@ npu_device.open().as_default()) ``` -

训练环境准备

-1. 硬件环境准备请参见各硬件产品文档"[驱动和固件安装升级指南]( https://support.huawei.com/enterprise/zh/category/ai-computing-platform-pid-1557196528909)"。需要在硬件设备上安装与CANN版本配套的固件与驱动。 -2. 宿主机上需要安装Docker并登录[Ascend Hub中心](https://ascendhub.huawei.com/#/detail?name=ascend-tensorflow-arm)获取镜像。 - - 当前模型支持的镜像列表如[表1](#zh-cn_topic_0000001074498056_table1519011227314)所示。 - - **表 1** 镜像列表 - - - - - - - - - - - - -

镜像名称

-

镜像版本

-

配套CANN版本

-
-

21.0.2

-

5.0.2

-
+- 硬件环境和运行环境准备请参见《[CANN软件安装指南](https://support.huawei.com/enterprise/zh/ascend-computing/cann-pid-251168373?category=installation-update)》 +- 运行以下命令安装依赖。 +``` +pip3 install requirements.txt +``` +说明:依赖配置文件requirements.txt文件位于模型的根目录

快速上手

diff --git a/TensorFlow2/built-in/cv/image_classification/pointnet_ID2531_for_TensorFlow2.X/README.md b/TensorFlow2/built-in/cv/image_classification/pointnet_ID2531_for_TensorFlow2.X/README.md index 680c008a9b83f3d1015a57453f55cce9000d090a..5c53068dfaa8aca2153f27cb47edff08e82a623f 100644 --- a/TensorFlow2/built-in/cv/image_classification/pointnet_ID2531_for_TensorFlow2.X/README.md +++ b/TensorFlow2/built-in/cv/image_classification/pointnet_ID2531_for_TensorFlow2.X/README.md @@ -45,9 +45,9 @@ - 适配昇腾 AI 处理器的实现: - https://gitee.com/ascend/modelzoo/tree/master/built-in/TensorFlow2/Official/cv/image_classification/pointnet_ID2531_for_TensorFlow2.X + https://gitee.com/ascend/ModelZoo-TensorFlow/tree/master/TensorFlow2/built-in/cv/image_classification/pointnet_ID2531_for_TensorFlow2.X -- 通过Git获取对应commit_id的代码方法如下: +- 通过Git获取对应commit\_id的代码方法如下: git clone {repository_url} # 克隆仓库的代码 cd {repository_name} # 切换到模型的代码仓目录 @@ -92,34 +92,14 @@ ############维测参数############## ``` -

训练环境准备

-1. 硬件环境准备请参见各硬件产品文档"[驱动和固件安装升级指南]( https://support.huawei.com/enterprise/zh/category/ai-computing-platform-pid-1557196528909)"。需要在硬件设备上安装与CANN版本配套的固件与驱动。 -2. 宿主机上需要安装Docker并登录[Ascend Hub中心](https://ascendhub.huawei.com/#/detail?name=ascend-tensorflow-arm)获取镜像。 - - 当前模型支持的镜像列表如[表1](#zh-cn_topic_0000001074498056_table1519011227314)所示。 - - **表 1** 镜像列表 - - - - - - - - - - - - -

镜像名称

-

镜像版本

-

配套CANN版本

-
-

21.0.2

-

5.0.2

-
+- 硬件环境和运行环境准备请参见《[CANN软件安装指南](https://support.huawei.com/enterprise/zh/ascend-computing/cann-pid-251168373?category=installation-update)》 +- 运行以下命令安装依赖。 +``` +pip3 install requirements.txt +``` +说明:依赖配置文件requirements.txt文件位于模型的根目录

快速上手

diff --git a/TensorFlow2/built-in/cv/image_segmentation/pointnet_segmentation_ID2532_for_TensorFlow2.X/README.md b/TensorFlow2/built-in/cv/image_segmentation/pointnet_segmentation_ID2532_for_TensorFlow2.X/README.md index f441c4e2a49e9b1876bf7230cce6e8bf831886d9..a288630cdceb50f7c43ed1772f70cb34769e4e57 100644 --- a/TensorFlow2/built-in/cv/image_segmentation/pointnet_segmentation_ID2532_for_TensorFlow2.X/README.md +++ b/TensorFlow2/built-in/cv/image_segmentation/pointnet_segmentation_ID2532_for_TensorFlow2.X/README.md @@ -8,7 +8,7 @@ **发布者(Publisher):Huawei** -**应用领域(Application Domain): Image Segmentation** +**应用领域(Application Domain): Instance Segmentation** **版本(Version):1.1** @@ -45,9 +45,9 @@ - 适配昇腾 AI 处理器的实现: - https://gitee.com/ascend/modelzoo/tree/master/built-in/TensorFlow2/Official/cv/image_segmentation/pointnet_segmentation_ID2532_for_TensorFlow2.X + https://gitee.com/ascend/ModelZoo-TensorFlow/tree/master/TensorFlow2/built-in/cv/image_segmentation/pointnet_segmentation_ID2532_for_TensorFlow2.X -- 通过Git获取对应commit_id的代码方法如下: +- 通过Git获取对应commit\_id的代码方法如下: git clone {repository_url} # 克隆仓库的代码 cd {repository_name} # 切换到模型的代码仓目录 @@ -96,34 +96,14 @@ ############维测参数############## ``` -

训练环境准备

-1. 硬件环境准备请参见各硬件产品文档"[驱动和固件安装升级指南]( https://support.huawei.com/enterprise/zh/category/ai-computing-platform-pid-1557196528909)"。需要在硬件设备上安装与CANN版本配套的固件与驱动。 -2. 宿主机上需要安装Docker并登录[Ascend Hub中心](https://ascendhub.huawei.com/#/detail?name=ascend-tensorflow-arm)获取镜像。 - - 当前模型支持的镜像列表如[表1](#zh-cn_topic_0000001074498056_table1519011227314)所示。 - - **表 1** 镜像列表 - - - - - - - - - - - - -

镜像名称

-

镜像版本

-

配套CANN版本

-
-

21.0.2

-

5.0.2

-
+- 硬件环境和运行环境准备请参见《[CANN软件安装指南](https://support.huawei.com/enterprise/zh/ascend-computing/cann-pid-251168373?category=installation-update)》 +- 运行以下命令安装依赖。 +``` +pip3 install requirements.txt +``` +说明:依赖配置文件requirements.txt文件位于模型的根目录

快速上手