# cann code **Repository Path**: xuduoduo2021/cann-code ## Basic Information - **Project Name**: cann code - **Description**: cann 训练营作业代码 华为云账号: hw_008613258267870_01 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-08-05 - **Last Updated**: 2022-03-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cann code #### 介绍 cann 训练营作业代码 华为云账号: hw_008613258267870_01 #### 软件架构 │ .build_project │ .project │ 1.txt │ AllPluginsInfo.json │ CMakeLists.txt │ README.en.md │ README.md │ ├───.idea ├───build │ ├───cmake │ │ │ clangdErr.log │ │ │ CMakeCache.txt │ │ │ CMakeErr.log │ │ │ CMakeOut.log │ │ │ cmake_install.cmake │ │ │ compile_commands.json │ │ │ Makefile │ │ │ │ │ ├───CMakeFiles │ │ │ │ cmake.check_cache │ │ │ │ CMakeDirectoryInformation.cmake │ │ │ │ CMakeOutput.log │ │ │ │ feature_tests.bin │ │ │ │ feature_tests.c │ │ │ │ feature_tests.cxx │ │ │ │ Makefile.cmake │ │ │ │ Makefile2 │ │ │ │ progress.marks │ │ │ │ TargetDirectories.txt │ │ │ │ │ │ │ ├───3.10.2 │ │ │ │ │ CMakeCCompiler.cmake │ │ │ │ │ CMakeCXXCompiler.cmake │ │ │ │ │ CMakeDetermineCompilerABI_C.bin │ │ │ │ │ CMakeDetermineCompilerABI_CXX.bin │ │ │ │ │ CMakeSystem.cmake │ │ │ │ │ │ │ │ │ ├───CompilerIdC │ │ │ │ │ │ a.out │ │ │ │ │ │ CMakeCCompilerId.c │ │ │ │ │ │ │ │ │ │ │ └───tmp │ │ │ │ └───CompilerIdCXX │ │ │ │ │ a.out │ │ │ │ │ CMakeCXXCompilerId.cpp │ │ │ │ │ │ │ │ │ └───tmp │ │ │ └───CMakeTmp │ │ └───src │ │ │ cmake_install.cmake │ │ │ Makefile │ │ │ │ │ └───CMakeFiles │ │ │ CMakeDirectoryInformation.cmake │ │ │ progress.marks │ │ │ │ │ └───main.dir │ │ build.make │ │ cmake_clean.cmake │ │ depend.make │ │ DependInfo.cmake │ │ flags.make │ │ link.txt │ │ progress.make │ │ │ ├───intermediates │ │ │ CMakeCache.txt │ │ │ cmake_install.cmake │ │ │ Makefile │ │ │ │ │ ├───CMakeFiles │ │ │ │ cmake.check_cache │ │ │ │ CMakeDirectoryInformation.cmake │ │ │ │ CMakeOutput.log │ │ │ │ feature_tests.bin │ │ │ │ feature_tests.c │ │ │ │ feature_tests.cxx │ │ │ │ Makefile.cmake │ │ │ │ Makefile2 │ │ │ │ progress.marks │ │ │ │ TargetDirectories.txt │ │ │ │ │ │ │ ├───3.10.2 │ │ │ │ │ CMakeCCompiler.cmake │ │ │ │ │ CMakeCXXCompiler.cmake │ │ │ │ │ CMakeDetermineCompilerABI_C.bin │ │ │ │ │ CMakeDetermineCompilerABI_CXX.bin │ │ │ │ │ CMakeSystem.cmake │ │ │ │ │ │ │ │ │ ├───CompilerIdC │ │ │ │ │ │ a.out │ │ │ │ │ │ CMakeCCompilerId.c │ │ │ │ │ │ │ │ │ │ │ └───tmp │ │ │ │ └───CompilerIdCXX │ │ │ │ │ a.out │ │ │ │ │ CMakeCXXCompilerId.cpp │ │ │ │ │ │ │ │ │ └───tmp │ │ │ └───CMakeTmp │ │ └───src │ │ │ cmake_install.cmake │ │ │ Makefile │ │ │ │ │ └───CMakeFiles │ │ │ CMakeDirectoryInformation.cmake │ │ │ progress.marks │ │ │ │ │ └───main.dir │ │ build.make │ │ cmake_clean.cmake │ │ CXX.includecache │ │ depend.internal │ │ depend.make │ │ DependInfo.cmake │ │ flags.make │ │ link.txt │ │ main.cpp.o │ │ progress.make │ │ │ └───log │ build.log │ ├───config │ logging.conf │ sdk.conf │ ├───data │ test.jpg │ ├───models │ ├───resnet50 │ │ aipp_resnet50_224_224.aippconfig │ │ imagenet1000_clsidx_to_labels.names │ │ resnet50_aipp_tf.cfg │ │ resnet50_aipp_tf.om │ │ │ └───yolov5 │ coco.names │ yolov5.cfg │ yolov5s_sim_t.om │ ├───out │ │ main │ │ result_test.jpg │ │ │ ├───config │ │ logging.conf │ │ sdk.conf │ │ │ └───logs ├───pipeline │ detection_classification.pipeline │ yolov5s_example.pipeline │ └───src │ CMakeLists.txt │ main.cpp │ └───mxpi_sampleplugin CMakeLists.txt MxpiSamplePlugin.cpp MxpiSamplePlugin.h #### 安装教程 参见Mindstudio安装教程 #### 使用说明 一、使用sample案例 1. 将文件下载到本地并解压 2. 新建一个classification and detection项目 3. 将本地中的main、 CMakeLists.txt、pipeline以及models文件上传到工程中 4.编译运行 二、直接上传本文件 1.将文件下载到本地并解压 2.将文件上传到云上,并使用Mindstudio打开 3.注意保持.idea文件夹为空,否则会有之前打开的工程文件配置干扰 4.选择工程环境->Ascend app;编译;运行