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
58222d78
Commit
58222d78
authored
Jun 19, 2023
by
zhanggzh
Browse files
Update README file
parent
8b268e40
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
README.md
README.md
+14
-3
kitten.jpg
kitten.jpg
+0
-0
tune_resnet50-v2.py
tune_resnet50-v2.py
+1
-1
No files found.
README.md
View file @
58222d78
...
...
@@ -9,13 +9,24 @@
```
ResNet50-v2
```
##
数据集及
模型文件
## 模型文件
模型文件下载地址:
```
"https://github.com/onnx/models/raw/main/vision/classification/resnet/model/resnet50-v2-7.onnx"
```
## 数据集
python 推理及调优代码使用的图片数据为:
```
"https://s3.amazonaws.com/model-server/inputs/kitten.jpg"
```
标签数据为:
```
"https://s3.amazonaws.com/onnx-model-zoo/synset.txt"
```
C++部署代码使用数据为:
```
"https://github.com/ultralytics/yolov5/releases/download/v1.0/coco128.zip"
```
## 推理、自动调优及部署
### 环境配置
拉取镜像:
...
...
kitten
s
.jpg
→
kitten.jpg
View file @
58222d78
File moved
tune_resnet50-v2.py
View file @
58222d78
...
...
@@ -72,7 +72,7 @@ def readimage(pathOfImage,GRAY=False,inputShape=[1,3,128,128]):
#Download the image data, then convert it to a numpy array to use as an input to the model.
#img_url = "https://s3.amazonaws.com/model-server/inputs/kitten.jpg"
img_path
=
"/kitten
s
.jpg"
img_path
=
"/kitten.jpg"
#img_path = download_testdata(img_url, "imagenet_cat.png", module="data")
network
=
"resnet50-v2-7"
dtype
=
"float32"
...
...
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