소스 검색

修改文档说明

liyan 2 달 전
부모
커밋
e09defa1fb
9개의 변경된 파일58개의 추가작업 그리고 2개의 파일을 삭제
  1. 58 2
      README.md
  2. BIN
      assets/img.png
  3. BIN
      assets/img1.png
  4. BIN
      assets/img2.png
  5. BIN
      assets/img3.png
  6. BIN
      assets/img4.png
  7. BIN
      assets/img_1.png
  8. BIN
      assets/img_2.png
  9. BIN
      assets/img_3.png

+ 58 - 2
README.md

@@ -5,9 +5,45 @@
 - `master`分支使用onnx权重文件进行水印提取流程
 - `om`分支使用昇腾平台专用om权重文件格式进行水印提取流程
 
+## 安装WSL开发环境
+### 下载适用于 WSL2 的 Ubuntu 压缩包
+
+Ubuntu官方镜像(可手动下载,不使用以下命令)
+
+[https://cloud-images.ubuntu.com/releases/focal/release-20240710/ubuntu-20.04-server-cloudimg-amd64-wsl.rootfs.tar.gz](https://cloud-images.ubuntu.com/releases/focal/release-20240710/ubuntu-20.04-server-cloudimg-amd64-wsl.rootfs.tar.gz)
+
+可以从 Ubuntu WSL镜像 中下载适用于 WSL2 的 Ubuntu 镜像压缩包保存到本地。
+
+### 在 WSL2 中安装第二个 Ubuntu 实例
+
+`wsl --import <Distribution Name> <Installation Folder> <Ubuntu WSL2 Image Tarball path>`
+
+   - 将 <Distribution Name> 改成自己想要的名字,比如ubuntu-2,以后启停会用到
+   - 使用 Ubuntu 实例目标安装路径(文件夹)替换掉 <Installation Folder>
+   - 最后用上一步下载的 Ubuntu 镜像存储位置替换掉 <Ubuntu WSL2 Image Tarball path>
+
+以上命令运行成功后可以使用 wsl -l -v 查看已安装的发行版。
+
+### 登录到第二个Ubuntu实例
+
+首先将发行版实例(第二个Ubuntu实例)运行起来:
+
+`wsl -d <Distribution Name>`
+这里的 <Distribution Name> 很明显就是第三步中指定的名字。
+
+
+## 环境搭建
+1. 使用wsl安装ubuntu20.04
+2. 访问 https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/80RC2alpha002/softwareinst/instg/instg_0001.html 按照说明文档安装`Ascend-cann-toolkit_8.0.0.alpha002_linux-x86_64.run`和`Ascend-cann-kernels-310b_8.0.0.alpha002_linux-x86_64.run`
+![img.png](assets/img.png)
+3. Ubuntu20.04安装依赖和python3.7.5:https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/80RC2alpha002/softwareinst/instg/instg_0028.html
+4. 开发包及算子包的安装步骤: https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/80RC2alpha002/softwareinst/instg/instg_0033.html
+![img_3.png](assets/img_3.png)
+5. 昇腾平台相关开发工具文档:https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/80RC2alpha002/devaids/auxiliarydevtool/auxiliarydevtool_0000.html
+
 ## 转换为om格式脚本
-需要使用ATC工具进行模型转换,需要安装MXvision工具
-- GoogleNet转换
+需要使用ATC工具进行模型转换,安装`Ascend-cann-toolkit_8.0.0.alpha002_linux-x86_64.run`后即可使用
+- AlexNet、VGG16、GoogleNet、ResNet转换
 ```shell
 # 修改--model参数,指定onnx文件位置,--output参数,指定输出的om文件名
 atc --model="model.onnx" --framework=5 --output=googlenet --input_shape="input:-1,3,224,224" --dynamic_batch_size="1,10" --soc_version=Ascend310B4 --log=info --host_env_cpu=aarch64
@@ -21,6 +57,26 @@ atc --model="model.onnx" --framework=5 --output=ssd --input_shape="images:1,3,30
 atc --model="yolox.onnx" --framework=5 --output=yolox --input_shape="images:1,3,640,640" --soc_version=Ascend310B4 --log=info --host_env_cpu=aarch64
 ```
 - Faster-RCNN转换
+```shell
+atc --model="model.onnx" --framework=5 --output=rcnn --input_shape="input_image:1,3,600,600"  --soc_version=Ascend310B4 --log=info --host_env_cpu=aarch64
+```
+
+## 使用HUAWEI Altas 200I DK A2进行远程调试
+1. 安装pycharm
+2. 添加新的python解释器
+![img1.png](assets/img1.png)
+3. 输入SSH的IP、username、password;成功后点击`Next`
+4. 按照下图所示进行填写,点击`create`,添加远程python解释器
+![img.png](assets/img2.png)
+5. 上传项目代码至开发板
+![img.png](assets/img3.png)
+6. 直接运行推理测试会提示缺失so库,需要在运行配置添加环境变量,如图所示,点击运行配置
+![img.png](assets/img4.png)
+7. 使用SSH工具登录开发板,输入`printenv`命令,获取当前开发板所有环境变量信息
+8. 在运行配置中,添加环境变量
+![img_1.png](assets/img_1.png) 
+![img_2.png](assets/img_2.png)
+9. 粘贴后下方环境变量列表出现环境变量,点击`ok`,`apply`,重新运行程序即可
 
 ## 水印提取流程说明
 - 黑盒水印提取流程

BIN
assets/img.png


BIN
assets/img1.png


BIN
assets/img2.png


BIN
assets/img3.png


BIN
assets/img4.png


BIN
assets/img_1.png


BIN
assets/img_2.png


BIN
assets/img_3.png