diff --git a/contrib/DocumentLayoutAnalysis/README.md b/contrib/DocumentLayoutAnalysis/README.md index 29c481612c3567d11f8427b587b7914cc4bb8e85..82ad7f5a4638ba024733f7ea45fe2945a340d2d6 100644 --- a/contrib/DocumentLayoutAnalysis/README.md +++ b/contrib/DocumentLayoutAnalysis/README.md @@ -10,14 +10,15 @@ ### 1.2 支持的产品 -支持Atlas 500 A2 推理产品。 +本项目以昇腾Atlas 300I Pro, Atlas 300V Pro和Atlas 500 A2为主要的硬件平台。 ### 1.3 支持的版本 | MxVision版本 | CANN版本 | Driver/Firmware版本 | - | --------- | ------------------ | -------------- | -| 6.0.RC2 | 8.0.RC2 | 24.1.RC2 | + | --------- | ------------------ | -------------- | | 5.0.0 | 7.0.0 | 23.0.0 | +| 6.0.RC2 | 8.0.RC2 | 24.1.RC2 | +| 6.0.RC3 | 8.0.RC3 | 24.1.RC3 | @@ -82,10 +83,10 @@ cd 到工程目录model目录下。 执行以下命令: - atc --model=./picodet_lcnet_x1_0_fgd_layout_cdla_infer.onnx --framework=5 --output=./layout --soc_version=Ascend310B1 --insert_op_conf=./layout.aippconfig - -注:1.执行成功后终端会输出相关信息提示模型转换成功。 -2.模型转换使用了ATC工具,如在模型转换过程中出现异常请参考昇腾官网相关资料。 + atc --model=./picodet_lcnet_x1_0_fgd_layout_cdla_infer.onnx --framework=5 --output=./layout --soc_version=${SOC_VERSION} --insert_op_conf=./layout.aippconfig +注:1.当使用昇腾Atlas 300I Pro、Atlas 300V Pro硬件平台时,SOC_VERSION为 Ascend310P3;当使用昇腾Atlas 500 A2硬件平台时,SOC_VERSION为 Ascend310B1。 +2.执行成功后终端会输出相关信息提示模型转换成功。 +3.模型转换使用了ATC工具,如在模型转换过程中出现异常请参考昇腾官网相关资料。 ## 4 运行 diff --git a/contrib/HelmetIdentification/README.md b/contrib/HelmetIdentification/README.md index 858831d15f942ad33382a35c86c84c561a61afbc..8d16e20d6cbbebd2a7c434e53e820e5d909fa9ba 100644 --- a/contrib/HelmetIdentification/README.md +++ b/contrib/HelmetIdentification/README.md @@ -10,15 +10,17 @@ ### 1.2 支持的产品 -本项目基于mxVision SDK进行开发,以Atlas 500 A2为主要的硬件平台。 +本项目以昇腾Atlas 300I Pro, Atlas 300V Pro和Atlas 500 A2为主要的硬件平台。 ### 1.3 支持的版本 本样例配套的MxVision版本、CANN版本、Driver/Firmware版本如下所示: + | MxVision版本 | CANN版本 | Driver/Firmware版本 | |--------------- | ---------------------------------- | ----------| | 5.0.0 | 7.0.0 | 23.0.0| |6.0.RC2 | 8.0.RC2 | 24.1.RC2| +| 6.0.RC3 | 8.0.RC3 | 24.1.RC3 | MindX SDK安装前准备可参考《用户指南》,[安装教程](https://gitee.com/ascend/mindxsdk-referenceapps/blob/master/docs/quickStart/1-1安装SDK开发套件.md)。 ### 1.4 三方依赖 @@ -90,7 +92,7 @@ sh atc-env.sh 脚本中包含atc命令: ```shell ---model=${Home}/YOLOv5_s.onnx --framework=5 --output=${Home}/YOLOv5_s --insert_op_conf=./aipp_YOLOv5.config --input_format=NCHW --log=info --soc_version=Ascend310B1 --input_shape="images:1,3,640,640" +--model=${Home}/YOLOv5_s.onnx --framework=5 --output=${Home}/YOLOv5_s --insert_op_conf=./aipp_YOLOv5.config --input_format=NCHW --log=info --soc_version=${SOC_VERSION} --input_shape="images:1,3,640,640" ``` 其参数如下表所示 @@ -105,7 +107,9 @@ sh atc-env.sh | --input_shape | 模型输入数据的 shape。 | | --out_nodes | 指定输出节点,如果不指定输出节点(算子名称),则模型的输出默认为最后一层的算子信息,如果 指定,则以指定的为准 | -其中--insert_op_conf参数为aipp预处理算子配置文件路径。该配置文件aipp_YOLOv5.config在输入图像进入模型前进行预处理。该配置文件保存在源码Models目录下。 +*其中--insert_op_conf参数为aipp预处理算子配置文件路径。该配置文件aipp_YOLOv5.config在输入图像进入模型前进行预处理。该配置文件保存在源码Models目录下。 + +*当使用昇腾Atlas 300I Pro、Atlas 300V Pro硬件平台时,SOC_VERSION为 Ascend310P3;当使用昇腾Atlas 500 A2硬件平台时,SOC_VERSION为 Ascend310B1。 ## 4.编译与运行 ### 4.1 编译mxpi_selectedframe插件 diff --git a/contrib/HelmetIdentification/plugins/MxpiSelectedFrame/CMakeLists.txt b/contrib/HelmetIdentification/plugins/MxpiSelectedFrame/CMakeLists.txt index d0e93415e0e029c57daa52d1f1b4c12f1b93c642..8beccc5f6a199d9b4f9d5ea168a01f4d202e13ac 100644 --- a/contrib/HelmetIdentification/plugins/MxpiSelectedFrame/CMakeLists.txt +++ b/contrib/HelmetIdentification/plugins/MxpiSelectedFrame/CMakeLists.txt @@ -17,7 +17,7 @@ include_directories(${MX_SDK_HOME}/lib) link_directories(${MX_SDK_HOME}/lib) link_directories(${MX_SDK_HOME}/opensource/lib) -add_compile_options(-std=c++11 -fPIC -fstack-protector-all -pie -Wno-deprecated-declarations) +add_compile_options(-std=c++14 -fPIC -fstack-protector-all -pie -Wno-deprecated-declarations) add_compile_options("-DPLUGIN_NAME=${PLUGIN_NAME}") add_library(${TARGET_LIBRARY} SHARED MxpiSelectedFrame.cpp) diff --git a/contrib/PoseEstNet/README.md b/contrib/PoseEstNet/README.md index 225bd7b90dfc4e7014cf3c6b27960ab92b5158a1..8643e60ae90b4ac70b4dca852c3756c04bc2b86b 100644 --- a/contrib/PoseEstNet/README.md +++ b/contrib/PoseEstNet/README.md @@ -14,16 +14,24 @@ 3、由于Dvpp的crop插件对图片尺寸有限制,所以图片中的车辆不应过小。 ### 1.2 支持的产品 -本项目以昇腾Atlas 500 A2为主要的硬件平台。 +本项目以昇腾Atlas 300I Pro, Atlas 300V Pro和Atlas 500 A2为主要的硬件平台。 ### 1.3 支持的版本 本样例配套的MxVision版本、CANN版本、Driver/Firmware版本如下所示: + | MxVision版本 | CANN版本 | Driver/Firmware版本 | | --------- | ------------------ | -------------- | | 5.0.0 | 7.0.0 | 23.0.0 | | 6.0.RC2 | 8.0.RC2 | 24.1.RC2 | +| 6.0.RC3 | 8.0.RC3 | 24.1.RC3 | + +### 1.4 三方依赖 +| 软件名称 | 版本 | +| -------- |--------| +| boost | 1.71.0 | +*boost可使用apt-get install libboost-all-dev指令安装。 -### 1.4 代码目录结构说明 +### 1.5 代码目录结构说明 ``` PoseEstNet |---- models @@ -87,8 +95,10 @@ export install_path=${install_path} 1. 使用ATC将.pb文件转成为.om文件。 ``` -atc --model=yolov3_tensorflow_1.5.pb --framework=3 --output=yolov3 --output_type=FP32 --soc_version=Ascend310B1 --input_shape="input:1,416,416,3" --out_nodes="yolov3/yolov3_head/Conv_6/BiasAdd:0;yolov3/yolov3_head/Conv_14/BiasAdd:0;yolov3/yolov3_head/Conv_22/BiasAdd:0" --log=info --insert_op_conf=aipp_nv12.cfg +atc --model=yolov3_tensorflow_1.5.pb --framework=3 --output=yolov3 --output_type=FP32 --soc_version=${SOC_VERSION} --input_shape="input:1,416,416,3" --out_nodes="yolov3/yolov3_head/Conv_6/BiasAdd:0;yolov3/yolov3_head/Conv_14/BiasAdd:0;yolov3/yolov3_head/Conv_22/BiasAdd:0" --log=info --insert_op_conf=aipp_nv12.cfg ``` +*当使用昇腾Atlas 300I Pro、Atlas 300V Pro硬件平台时,SOC_VERSION为 Ascend310P3;当使用昇腾Atlas 500 A2硬件平台时,SOC_VERSION为 Ascend310B1。 + 2. 执行完模型转换脚本后,若提示如下信息说明模型转换成功,可以在该路径下找到名为yolov3.om模型文件。 (可以通过修改output参数来重命名这个.om文件) ``` diff --git a/contrib/PoseEstNet/plugins/postprocess/CMakeLists.txt b/contrib/PoseEstNet/plugins/postprocess/CMakeLists.txt index 4c7d37232d2588068f94a45af492a0006220bbe3..fb113b198eb6e291a5395fbaf47f18ec24bd24d0 100644 --- a/contrib/PoseEstNet/plugins/postprocess/CMakeLists.txt +++ b/contrib/PoseEstNet/plugins/postprocess/CMakeLists.txt @@ -22,7 +22,7 @@ include_directories(../include) link_directories(${MX_SDK_HOME}/lib) link_directories(${MX_SDK_HOME}/opensource/lib) -add_compile_options(-std=c++11 -fPIC -fstack-protector-all -pie -Wno-deprecated-declarations -g) +add_compile_options(-std=c++14 -fPIC -fstack-protector-all -pie -Wno-deprecated-declarations -g) add_compile_options("-DPLUGIN_NAME=${PLUGIN_NAME}") add_definitions(-DENABLE_DVPP_INTERFACE) diff --git a/contrib/PoseEstNet/plugins/preprocess/CMakeLists.txt b/contrib/PoseEstNet/plugins/preprocess/CMakeLists.txt index f4f00ff5b1be4fcdbd7da99a4ada44bb46ad86a3..a06b45c33cf4dfe6f78618f38f597de970198676 100644 --- a/contrib/PoseEstNet/plugins/preprocess/CMakeLists.txt +++ b/contrib/PoseEstNet/plugins/preprocess/CMakeLists.txt @@ -22,7 +22,7 @@ include_directories(../include) link_directories(${MX_SDK_HOME}/lib) link_directories(${MX_SDK_HOME}/opensource/lib) -add_compile_options(-std=c++11 -fPIC -fstack-protector-all -pie -Wno-deprecated-declarations -g) +add_compile_options(-std=c++14 -fPIC -fstack-protector-all -pie -Wno-deprecated-declarations -g) add_compile_options("-DPLUGIN_NAME=${PLUGIN_NAME}") add_definitions(-DENABLE_DVPP_INTERFACE) diff --git a/contrib/RoadSegmentation/README.md b/contrib/RoadSegmentation/README.md index 40f3d6f38a19f61f579f3165dd5dee7f0bb71b85..6adfddbb8154061ef6adc6981336f5188110fd32 100644 --- a/contrib/RoadSegmentation/README.md +++ b/contrib/RoadSegmentation/README.md @@ -37,16 +37,18 @@ 6.适应于形状规则且与周围环境色差较大的路面图片。
### 1.2 支持的产品 -本项目以昇腾Atlas 500 A2为主要的硬件平台。 +本项目以昇腾Atlas 300I Pro, Atlas 300V Pro和Atlas 500 A2为主要的硬件平台。 ### 1.3 支持的版本 本样例配套的MxVision版本、CANN版本、Driver/Firmware版本如下所示: + | MxVision版本 | CANN版本 | Driver/Firmware版本 | |--------------- | ---------------------------------- | ----------| | 5.0.0 | 7.0.0 | 23.0.0| |6.0.RC2 | 8.0.RC2 | 24.1.RC2| +| 6.0.RC3 | 8.0.RC3 | 24.1.RC3 | ### 1.4 代码目录结构说明 ``` @@ -93,8 +95,10 @@ 在使用[atc工具](https://www.hiascend.com/document/detail/zh/canncommercial/80RC2/devaids/auxiliarydevtool/atlasatc_16_0001.html)之前**需按第2节环境设置章节**事先配置好CANN环境,之后将3.1节中导出的onnx文件上传至```model```目录下,在该目录下执行: ``` -atc --framework=5 --model=Road.onnx --output=road_segmentation --input_format=NCHW --insert_op_conf=../config/aipp_road_segmentation.config --input_shape="image:1,3,224,224" --log=debug --soc_version=Ascend310B1 +atc --framework=5 --model=Road.onnx --output=road_segmentation --input_format=NCHW --insert_op_conf=../config/aipp_road_segmentation.config --input_shape="image:1,3,224,224" --log=debug --soc_version=${SOC_VERSION} ``` +*当使用昇腾Atlas 300I Pro、Atlas 300V Pro硬件平台时,SOC_VERSION为 Ascend310P3;当使用昇腾Atlas 500 A2硬件平台时,SOC_VERSION为 Ascend310B1。 + 若出现以下信息,则转换成功。 ``` ATC run success diff --git a/contrib/RoadSegmentation/plugin/RoadSegPostProcess/CMakeLists.txt b/contrib/RoadSegmentation/plugin/RoadSegPostProcess/CMakeLists.txt index 4392432c4513c0267d16d9b1963ed0292a5c6110..df8ae94028a5e580e77a93d808572744e67e8b12 100644 --- a/contrib/RoadSegmentation/plugin/RoadSegPostProcess/CMakeLists.txt +++ b/contrib/RoadSegmentation/plugin/RoadSegPostProcess/CMakeLists.txt @@ -30,7 +30,7 @@ include_directories( link_directories(${MX_SDK_HOME}/lib) link_directories(${MX_SDK_HOME}/opensource/lib) -add_compile_options(-std=c++11 -fPIC -fstack-protector-all -pie -Wno-deprecated-declarations) +add_compile_options(-std=c++14 -fPIC -fstack-protector-all -pie -Wno-deprecated-declarations) add_compile_options("-DPLUGIN_NAME=${PLUGIN_NAME}") add_definitions(-DENABLE_DVPP_INTERFACE) diff --git a/contrib/SentimentAnalysis/README.md b/contrib/SentimentAnalysis/README.md index 40243829222db46f90ac15fa4e3cad283b96d097..ffc3dea82f2c424f35f6ada689a2aef0406c47af 100644 --- a/contrib/SentimentAnalysis/README.md +++ b/contrib/SentimentAnalysis/README.md @@ -26,7 +26,7 @@ ### 1.2 支持的产品 -本项目以昇腾Atlas 500 A2为主要的硬件平台。 +本项目以昇腾Atlas 300I Pro, Atlas 300V Pro和Atlas 500 A2为主要的硬件平台。 ### 1.3 支持的版本 @@ -34,7 +34,7 @@ | --------- | ------------------ | -------------- | | 5.0.0 | 7.0.0 | 23.0.0 | | 6.0.RC2 | 8.0.RC2 | 24.1.RC2 | - +| 6.0.RC3 | 8.0.RC3 | 24.1.RC3 | ### 1.4 代码目录结构与说明 @@ -121,9 +121,11 @@ h5模型转pb可以参考[源码](https://github.com/amir-abdi/keras_to_tensorfl # 进入模型文件所在目录 cd $HOME/models/sentiment_analysis # 执行模型转换命令 -atc --model=./sentiment_analysis.pb --framework=3 --input_format=ND --output=./sentiment_analysis --input_shape="Input-Token:1,500;Input-Segment:1,500" --out_nodes="dense_1/Softmax:0" --soc_version=Ascend310B1 --op_select_implmode="high_precision" +atc --model=./sentiment_analysis.pb --framework=3 --input_format=ND --output=./sentiment_analysis --input_shape="Input-Token:1,500;Input-Segment:1,500" --out_nodes="dense_1/Softmax:0" --soc_version=${SOC_VERSION} --op_select_implmode="high_precision" ``` +*当使用昇腾Atlas 300I Pro、Atlas 300V Pro硬件平台时,SOC_VERSION为 Ascend310P3;当使用昇腾Atlas 500 A2硬件平台时,SOC_VERSION为 Ascend310B1。 + 执行成功后终端输出为: ``` diff --git a/contrib/SentimentAnalysis/mxBase/CMakeLists.txt b/contrib/SentimentAnalysis/mxBase/CMakeLists.txt index 734d3c56204403f25fde2c3be15f357e41bc2571..092396aeec0acf027bca55b928dd1e2fd6b97561 100644 --- a/contrib/SentimentAnalysis/mxBase/CMakeLists.txt +++ b/contrib/SentimentAnalysis/mxBase/CMakeLists.txt @@ -8,7 +8,7 @@ file(GLOB_RECURSE SentimentAnalysis ${PROJECT_SOURCE_DIR}/SentimentAnalysis/*cpp include_directories(./test) file(GLOB_RECURSE Test ${PROJECT_SOURCE_DIR}/test/*cpp) set(TARGET mxBase_text_classification) -add_compile_options(-std=c++11 -fPIE -fstack-protector-all -fPIC -Wl,-z,relro,-z,now,-z,noexecstack -s -pie -Wall) +add_compile_options(-std=c++14 -fPIE -fstack-protector-all -fPIC -Wl,-z,relro,-z,now,-z,noexecstack -s -pie -Wall) add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0 -Dgoogle=mindxsdk_private) set(MX_SDK_HOME "$ENV{MX_SDK_HOME}") diff --git a/contrib/SentimentAnalysis/mxBase/SentimentAnalysis/SentimentAnalysis.cpp b/contrib/SentimentAnalysis/mxBase/SentimentAnalysis/SentimentAnalysis.cpp index 08f585f1317b384003575004d9349dad17384ac1..b0197d1b0b584865b1c1f798a657ed46280fa8d0 100644 --- a/contrib/SentimentAnalysis/mxBase/SentimentAnalysis/SentimentAnalysis.cpp +++ b/contrib/SentimentAnalysis/mxBase/SentimentAnalysis/SentimentAnalysis.cpp @@ -15,9 +15,10 @@ */ #include "SentimentAnalysis.h" -#include "MxBase/DeviceManager/DeviceManager.h" #include #include +#include "MxBase/Log/Log.h" +#include "MxBase/DeviceManager/DeviceManager.h" namespace { const float TEXT_START_CODE = 101.0; diff --git a/contrib/SentimentAnalysis/mxBase/test/Test.cpp b/contrib/SentimentAnalysis/mxBase/test/Test.cpp index 212f471e60d678a74f4796d9a7171e1667c2bd1c..7e2ffe73705a56e839b64b9d16412119c00b7146 100644 --- a/contrib/SentimentAnalysis/mxBase/test/Test.cpp +++ b/contrib/SentimentAnalysis/mxBase/test/Test.cpp @@ -2,6 +2,7 @@ #include #include #include +#include "MxBase/Log/Log.h" namespace { const uint32_t MAX_LENGTH = 500; diff --git a/contrib/SuperResolution/README.md b/contrib/SuperResolution/README.md index e76f71f7b4c01fc1a37fdd3773e254139c30f7a3..1bb6affa3530c60fa9d1692bad5b3fd5db74b43c 100644 --- a/contrib/SuperResolution/README.md +++ b/contrib/SuperResolution/README.md @@ -10,7 +10,7 @@ ### 1.2 支持的产品 -本项目以昇腾Atlas 500 A2为主要的硬件平台 +本项目以昇腾Atlas 300I Pro, Atlas 300V Pro和Atlas 500 A2为主要的硬件平台。 ### 1.3 支持的版本 @@ -20,6 +20,7 @@ | --------- | ------------------ | -------------- | | 5.0.0 | 7.0.0 | 23.0.0 | | 6.0.RC2 | 8.0.RC2 | 24.1.RC2 | +| 6.0.RC3 | 8.0.RC3 | 24.1.RC3 | ### 1.4 三方依赖 | 软件 | 版本 | @@ -101,8 +102,9 @@ aipp_op { ``` # 执行,转换VDSR模型成om格式 # Execute, transform VDSR model. -atc --model=./VDSR.prototxt --weight=./VDSR.caffemodel --framework=0 --input_format=NCHW --input_shape="data: 1, 1, 768, 768" --output=./VDSR_768_768 --soc_version=Ascend310B1 --output_type=FP32 --insert_op_conf=YUV420SP_U8_GRAY.cfg +atc --model=./VDSR.prototxt --weight=./VDSR.caffemodel --framework=0 --input_format=NCHW --input_shape="data: 1, 1, 768, 768" --output=./VDSR_768_768 --soc_version=${SOC_VERSION} --output_type=FP32 --insert_op_conf=YUV420SP_U8_GRAY.cfg ``` +*当使用昇腾Atlas 300I Pro、Atlas 300V Pro硬件平台时,SOC_VERSION为 Ascend310P3;当使用昇腾Atlas 500 A2硬件平台时,SOC_VERSION为 Ascend310B1。 执行完模型转换脚本后,会在model目录下生成相应的VDSR_768_768.om模型文件 diff --git a/contrib/SuperRetina/README.md b/contrib/SuperRetina/README.md index d1703f5923d4dd6ef35d8d4d463bd6fc142fd249..213573e602cc2b2747ca9febc22ae9fcb9d677eb 100644 --- a/contrib/SuperRetina/README.md +++ b/contrib/SuperRetina/README.md @@ -16,14 +16,16 @@ ### 1.2 支持的产品 -本项目以昇腾Atlas 500 A2为主要的硬件平台。 +本项目以昇腾Atlas 300I Pro, Atlas 300V Pro和Atlas 500 A2为主要的硬件平台。 ### 1.3 支持的版本 本样例配套的MxVision版本、CANN版本、Driver/Firmware版本如下所示: + | MxVision版本 | CANN版本 | Driver/Firmware版本 | | --------- | ------------------ | -------------- | | 5.0.0 | 7.0.0 | 23.0.0 | | 6.0.RC2 | 8.0.RC2 | 24.1.RC2 | +| 6.0.RC3 | 8.0.RC3 | 24.1.RC3 | ### 1.4 三方依赖 @@ -74,10 +76,11 @@ export install_path=${install_path} 本文提供已完成转换的onnx模型供开发者使用:https://mindx.sdk.obs.cn-north-4.myhuaweicloud.com/mindxsdk-referenceapps%20/contrib/SuperRetina/models.zip **步骤2** **onnx转om** 将步骤2中转换获得的onnx模型存放至**服务器端**的SuperRetina/目录下,执行如下命令: -```bash -bash onnx2om.sh ./SuperRetina.onnx ./SuperRetina +``` +atc --framework=5 --model=./SuperRetina.onnx --output=./SuperRetina --soc_version=${SOC_VERSION} --output_type="FP32" ``` +*当使用昇腾Atlas 300I Pro、Atlas 300V Pro硬件平台时,SOC_VERSION为 Ascend310P3;当使用昇腾Atlas 500 A2硬件平台时,SOC_VERSION为 Ascend310B1。 ## 4 运行 diff --git a/contrib/SuperRetina/onnx2om.sh b/contrib/SuperRetina/onnx2om.sh deleted file mode 100644 index 4afee26a8ed0351aa752e337ea6e7b99b20a6870..0000000000000000000000000000000000000000 --- a/contrib/SuperRetina/onnx2om.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -### - # @Author: Ethan - # @Date: 2022-08-30 11:18:00 - # @LastEditTime: 2022-09-21 15:33:00 - # @FilePath: \SuperRetina-main\onnx2om.sh - # @description: -### - -# Copyright 2022 Huawei Technologies Co., Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================ - -onnx_path=$1 -om_path=$2 - -echo "Input ONNX file path: ${onnx_path}" -echo "Output OM file path: ${om_path}" - -atc --framework=5 --model="${onnx_path}" \ - --output="${om_path}" \ - --soc_version=Ascend310B1 \ - --output_type="FP32" diff --git a/contrib/ai_paint/README.md b/contrib/ai_paint/README.md index 039dec1584da420b8ece4fb2a169f56e72dd60db..c62f184be8c41356c3c2ae73b31edcd279d6828d 100644 --- a/contrib/ai_paint/README.md +++ b/contrib/ai_paint/README.md @@ -9,14 +9,16 @@ ### 1.2 支持的产品 -本项目以昇腾Atlas 500 A2为主要的硬件平台。 +本项目以昇腾Atlas 300I Pro, Atlas 300V Pro和Atlas 500 A2为主要的硬件平台。 ### 1.3 支持的版本 本样例配套的MxVision版本、CANN版本、Driver/Firmware版本如下所示: + | MxVision版本 | CANN版本 | Driver/Firmware版本 | | --------- | ------------------ | -------------- | | 5.0.0 | 7.0.0 | 23.0.0 | | 6.0.RC2 | 8.0.RC2 | 24.1.RC2 | +| 6.0.RC3 | 8.0.RC3 | 24.1.RC3 | ### 1.4 代码目录结构说明 ``` @@ -47,8 +49,10 @@ **步骤2** 通过atc工具可转换为对应OM模型,转换命令 ``` -atc --output_type=FP32 --input_shape="objs:9;coarse_layout:1,256,256,17" --input_format=NHWC --output="AIPainting_v2" --soc_version=Ascend310B1 --framework=3 --model="AIPainting_v2.pb" +atc --output_type=FP32 --input_shape="objs:9;coarse_layout:1,256,256,17" --input_format=NHWC --output="AIPainting_v2" --soc_version=${SOC_VERSION} --framework=3 --model="AIPainting_v2.pb" ``` +*当使用昇腾Atlas 300I Pro、Atlas 300V Pro硬件平台时,SOC_VERSION为 Ascend310P3;当使用昇腾Atlas 500 A2硬件平台时,SOC_VERSION为 Ascend310B1。 + 将转换出来的om模型放入'样例所在目录/model'下 ## 4 运行 diff --git a/contrib/human_segmentation/CMakeLists.txt b/contrib/human_segmentation/CMakeLists.txt index b0a71fe1e00006518d5d4c996e3fc439592da593..702fe93c23a78a6b7369ce0feeb17b2d69d72196 100644 --- a/contrib/human_segmentation/CMakeLists.txt +++ b/contrib/human_segmentation/CMakeLists.txt @@ -3,7 +3,7 @@ project(C++_human_segmentation) add_compile_options(-fPIC -fstack-protector-all -g -Wl,-z,relro,-z,now,-z -pie -Wall) add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0 -Dgoogle=mindxsdk_private) - +set(CMAKE_CXX_STANDARD 14) set(MX_SDK_HOME "$ENV{MX_SDK_HOME}") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/") diff --git a/contrib/human_segmentation/README.md b/contrib/human_segmentation/README.md index 2970146b0cad9e25ba3082b5b3e6ff3bdc7e70ed..c6fda10316a7604e705cefc8060516d3c2476087 100644 --- a/contrib/human_segmentation/README.md +++ b/contrib/human_segmentation/README.md @@ -10,15 +10,17 @@ ### 1.2 支持的产品 -本项目以昇腾Atlas 500 A2为主要的硬件平台。 +本项目以昇腾Atlas 300I Pro, Atlas 300V Pro和Atlas 500 A2为主要的硬件平台。 ### 1.3 支持的版本 本样例配套的MxVision版本、CANN版本、Driver/Firmware版本如下所示: + | MxVision版本 | CANN版本 | Driver/Firmware版本 | | --------- | ------------------ | -------------- | | 5.0.0 | 7.0.0 | 23.0.0 | | 6.0.RC2 | 8.0.RC2 | 24.1.RC2 | +| 6.0.RC3 | 8.0.RC3 | 24.1.RC3 | ### 1.4 代码目录结构说明 @@ -53,8 +55,10 @@ #执行,转换human_segmentation.pb模型 #Execute, transform human_segmentation.pb model. -atc --input_shape="input_rgb:1,512,512,3" --input_format=NHWC --output=human_segmentation --soc_version=Ascend310B1 --insert_op_conf=./insert_op.cfg --framework=3 --model=./human_segmentation.pb +atc --input_shape="input_rgb:1,512,512,3" --input_format=NHWC --output=human_segmentation --soc_version=${SOC_VERSION} --insert_op_conf=./insert_op.cfg --framework=3 --model=./human_segmentation.pb ``` +*当使用昇腾Atlas 300I Pro、Atlas 300V Pro硬件平台时,SOC_VERSION为 Ascend310P3;当使用昇腾Atlas 500 A2硬件平台时,SOC_VERSION为 Ascend310B1。 + 执行完模型转换脚本后,若提示如下信息说明模型转换成功,会在output参数指定的路径下生成human_segmentation.om模型文件。 ``` ATC run success diff --git a/mxVision/PutText/PutText/CaptionGenManager.cpp b/mxVision/PutText/PutText/CaptionGenManager.cpp index 5d2b582089736d1382c8069f719a4b35cb998ecb..018d7068d7bb8033a2fb3688a34fc563371e6810 100644 --- a/mxVision/PutText/PutText/CaptionGenManager.cpp +++ b/mxVision/PutText/PutText/CaptionGenManager.cpp @@ -19,6 +19,7 @@ #include #include #include +#include "MxBase/Log/Log.h" #include "CaptionGenManager.h" using namespace std; diff --git a/mxVision/PutText/PutText/CaptionGeneration.cpp b/mxVision/PutText/PutText/CaptionGeneration.cpp index a572a7d616163db73e607c260755a1e0aa063c27..e51c41b5bd91220cd4bc3d612ee0489433fbd549 100644 --- a/mxVision/PutText/PutText/CaptionGeneration.cpp +++ b/mxVision/PutText/PutText/CaptionGeneration.cpp @@ -19,6 +19,7 @@ #include "CaptionGenManager.h" #include #include +#include "MxBase/Log/Log.h" #include "MxBase/DeviceManager/DeviceManager.h" using namespace std; diff --git a/mxVision/PutText/PutText/CaptionGeneration.h b/mxVision/PutText/PutText/CaptionGeneration.h index b321a8c4225afd77532cf1b152727aeec9eb4d56..88524deaa479685361ba36e22441f883292ad0ce 100644 --- a/mxVision/PutText/PutText/CaptionGeneration.h +++ b/mxVision/PutText/PutText/CaptionGeneration.h @@ -21,6 +21,7 @@ #include #include "iostream" #include "fstream" +#include "MxBase/Log/Log.h" #include "CaptionGenManager.h" class CaptionGeneration { diff --git a/mxVision/PutText/PutText/main.cpp b/mxVision/PutText/PutText/main.cpp index e8559357e1d5aa001eb35ab380ac9ca84b6191b0..f9d1c3b1c4b142abb94c4e460a682c47ab346e0b 100644 --- a/mxVision/PutText/PutText/main.cpp +++ b/mxVision/PutText/PutText/main.cpp @@ -1,5 +1,6 @@ #include #include +#include "MxBase/Log/Log.h" #include "CaptionGenManager.h" #include "CaptionGeneration.h" #include "CaptionImpl.h" diff --git a/mxVision/PutText/PutText/readme.md b/mxVision/PutText/PutText/readme.md index f736e66af700aeacdd36bc9c1eedfa8d4d7b3691..399f86947502113fc00d230aef106a1ec9c786b5 100644 --- a/mxVision/PutText/PutText/readme.md +++ b/mxVision/PutText/PutText/readme.md @@ -22,8 +22,11 @@ -| 软件名称 | 版本 | -| -------- | ------ | -| mxVision | 6.0.RC2 | +本样例配套的MxVision版本、CANN版本、Driver/Firmware版本如下所示: + +| MxVision版本 | CANN版本 | Driver/Firmware版本 | +|--------------- | ---------------------------------- | ----------| +|6.0.RC2 | 8.0.RC2 | 24.1.RC2| +| 6.0.RC3 | 8.0.RC3 | 24.1.RC3 | \ No newline at end of file diff --git a/tutorials/OsdSample/C++/CMakeLists.txt b/tutorials/OsdSample/C++/CMakeLists.txt index 55198d20d36498489cc33201d8a5dcc394b079a0..1dd54a882f3276448b23b7fa51097f417ce1b12a 100644 --- a/tutorials/OsdSample/C++/CMakeLists.txt +++ b/tutorials/OsdSample/C++/CMakeLists.txt @@ -18,7 +18,7 @@ endif() # Compile options add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0) add_definitions(-Dgoogle=mindxsdk_private) -add_compile_options(-std=c++11 -fPIC -fstack-protector-all -Wall) +add_compile_options(-std=c++14 -fPIC -fstack-protector-all -Wall) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) set(CMAKE_CXX_FLAGS_DEBUG "-g") diff --git a/tutorials/OsdSample/README.md b/tutorials/OsdSample/README.md index a13ae4c43b3c1bdca5ba7cb22f0860afdd0fdb4b..6d3e97bb5e0ff29208b57520fb95c80f39dd9764 100644 --- a/tutorials/OsdSample/README.md +++ b/tutorials/OsdSample/README.md @@ -7,7 +7,7 @@ * 如构建的proto数据正确则可在程序运行结束后在运行目录找到图片testout.jpg,此图片为输入图像经过缩放后加上绘图单元集合后的输出结果 ### 1.2 支持的产品 -本项目以昇腾Atlas 500 A2卡为主要硬件平台 +本项目以昇腾Atlas 300I Pro, Atlas 300V Pro和Atlas 500 A2为主要的硬件平台。 ### 1.3 支持的版本 本样例配套的MxVision版本、CANN版本、Driver/Firmware版本: @@ -16,6 +16,7 @@ | --------- | ------------------ | -------------- | | 5.0.0 | 7.0.0 | 23.0.0 | | 6.0.RC2 | 8.0.RC2 | 24.1.RC2 | +| 6.0.RC3 | 8.0.RC3 | 24.1.RC3 | ### 1.4 代码目录结构说明