Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50-v2_tvm
Commits
6275c5cf
Commit
6275c5cf
authored
Jun 19, 2023
by
zhanggzh
Browse files
Update README file
parent
9166cebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
README.md
README.md
+9
-7
No files found.
README.md
View file @
6275c5cf
...
@@ -8,28 +8,28 @@
...
@@ -8,28 +8,28 @@
ResNet50-v2
ResNet50-v2
```
```
## 数据集及模型文件
## 数据集及模型文件
模型文件下载地址:
模型文件下载地址:
```
```
"https://github.com/onnx/models/raw/main/vision/classification/resnet/model/resnet50-v2-7.onnx"
"https://github.com/onnx/models/raw/main/vision/classification/resnet/model/resnet50-v2-7.onnx"
```
```
## 推理、自动调优及部署
## 推理、自动调优及部署
### 环境配置
###
环境配置
拉取镜像:
拉取镜像:
```
```
docker pull image.sourcefind.cn:5000/dcu/admin/base/custom:tvm-0.11_fp32_cpp_dtk22.10_py38_centos-7.6-latest
docker pull image.sourcefind.cn:5000/dcu/admin/base/custom:tvm-0.11_fp32_cpp_dtk22.10_py38_centos-7.6-latest
```
```
### 执行推理及调优
###
执行推理及调优
下载模型文件后执行以下命令进行推理测试及调优测试:
下载模型文件后执行以下命令进行推理测试及调优测试:
```
```
python tune_resnet50-v2.py
python tune_resnet50-v2.py
```
```
### 部署推理
###
单卡
部署推理
测试
下载配置好镜像之后,cd /tvm-0.11-dev0/apps/ 进入该路径下,执行git clone https://developer.hpccube.com/codes/modelzoo/tvm_tune_resnet50-v2.git 下载代码,
下载配置好镜像之后,cd /tvm-0.11-dev0/apps/ 进入该路径下,执行git clone https://developer.hpccube.com/codes/modelzoo/tvm_tune_resnet50-v2.git 下载代码,
cd tvm_tune_resnet50-v2/ 进入该路径后,执行以下命令:
cd tvm_tune_resnet50-v2/ 进入该路径后,执行以下命令:
```
```
mkdir -p lib
mkdir -p lib
...
@@ -49,8 +49,10 @@ cd tvm_tune_resnet50-v2/ 进入该路径后,执行以下命令:
...
@@ -49,8 +49,10 @@ cd tvm_tune_resnet50-v2/ 进入该路径后,执行以下命令:
## 源码仓库及问题反馈
## 源码仓库及问题反馈
*
https://developer.hpccube.com/codes/modelzoo/tvm_tune_resnet50-v2
*
https://developer.hpccube.com/codes/modelzoo/tvm_tune_resnet50-v2
## 参考
## 参考
*
[
https://tvm.apache.org/docs/how_to/tune_with_autoscheduler/tune_network_cuda.html#sphx-glr-how-to-tune-with-autoscheduler-tune-network-cuda-py
](
)
*
[
https://tvm.apache.org/docs/how_to/tune_with_autoscheduler/tune_network_cuda.html#sphx-glr-how-to-tune-with-autoscheduler-tune-network-cuda-py
](
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment