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_onnxruntime
Commits
7be14167
Commit
7be14167
authored
Jun 30, 2023
by
yangql
Browse files
Update README.md
parent
ebf57ee3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
README.md
README.md
+13
-2
No files found.
README.md
View file @
7be14167
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
ResNet50模型包含了49个卷积层、一个全连接层。
ResNet50模型包含了49个卷积层、一个全连接层。
## Python版本推理
## Python版本推理
采用ONNXRuntime框架使用DCU进行推理,模型文件下载链接:https://github.com/onnx/models/blob/main/vision/classification/resnet/model/resnet50-v2-7.onnx ,执行sh ./Resource/Models/download.sh 可以下载模型并将resnet50-v2-7.onnx模型文件保存在Resource/文件夹下。下面介绍如何运行python代码示例,Python示例的详细说明见Doc目录下的Tutorial_Python.md。
采用ONNXRuntime框架使用DCU进行推理,下面介绍如何运行python代码示例,Python示例的详细说明见Doc目录下的Tutorial_Python.md。
### 下载镜像
### 下载镜像
在光源中下载ONNXRuntime推理框架镜像:
在光源中下载ONNXRuntime推理框架镜像:
...
@@ -34,6 +35,11 @@ cd Python/
...
@@ -34,6 +35,11 @@ cd Python/
# 安装依赖
# 安装依赖
pip
install
-
r
requirements
.
txt
pip
install
-
r
requirements
.
txt
```
```
### 下载模型
```
python
sh
.
/
Resource
/
Models
/
download
.
sh
```
### 运行示例
### 运行示例
...
@@ -43,7 +49,7 @@ python Classifier.py
...
@@ -43,7 +49,7 @@ python Classifier.py
## C++版本推理
## C++版本推理
采用ONNXRuntime框架使用DCU进行推理,
模型文件下载链接:https://github.com/onnx/models/blob/main/vision/classification/resnet/model/resnet50-v2-7.onnx ,执行sh ./Resource/Models/download.sh 可以下载模型并将resnet50-v2-7.onnx模型文件保存在Resource/文件夹下。
下面介绍如何运行C++代码示例,C++示例的详细说明见Doc目录下的Tutorial_Cpp.md。
采用ONNXRuntime框架使用DCU进行推理,下面介绍如何运行C++代码示例,C++示例的详细说明见Doc目录下的Tutorial_Cpp.md。
### 下载镜像
### 下载镜像
...
@@ -60,6 +66,11 @@ cd <path_to_resnet50_ort>
...
@@ -60,6 +66,11 @@ cd <path_to_resnet50_ort>
sh
.
/
3
rdParty
/
InstallOpenCVDependences
.
sh
sh
.
/
3
rdParty
/
InstallOpenCVDependences
.
sh
```
```
### 下载模型
```
python
sh
.
/
Resource
/
Models
/
download
.
sh
```
### 安装OpenCV并构建工程
### 安装OpenCV并构建工程
...
...
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