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
vision_transformer_jax
Commits
983e779c
Commit
983e779c
authored
Aug 30, 2024
by
suily
Browse files
添加推理结果
parent
568b9c2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+1
-1
test.py
test.py
+1
-1
No files found.
README.md
View file @
983e779c
...
@@ -147,7 +147,7 @@ wget https://storage.googleapis.com/vit_models/imagenet21k+imagenet2012/ViT-L_16
...
@@ -147,7 +147,7 @@ wget https://storage.googleapis.com/vit_models/imagenet21k+imagenet2012/ViT-L_16
```
```
```
```
cd /your_code_path/vision_transformer
cd /your_code_path/vision_transformer
python test.py
python test.py
# 文件内可修改模型目录和数据集目录
```
```
## result
## result
测试图为:
测试图为:
...
...
test.py
View file @
983e779c
...
@@ -26,7 +26,7 @@ if not (jax_test=='gpu'):
...
@@ -26,7 +26,7 @@ if not (jax_test=='gpu'):
exit
()
exit
()
'''指定模型'''
'''指定模型'''
model_name
=
'ViT-
L
_16'
#@param ["ViT-B_32", "Mixer-B_16"]
model_name
=
'ViT-
B
_16'
#@param ["ViT-B_32", "Mixer-B_16"]
pretrained_path
=
f
'./test_result/
{
model_name
}
.npz'
pretrained_path
=
f
'./test_result/
{
model_name
}
.npz'
model_path
=
f
'./test_result/
{
model_name
}
_imagenet2012.npz'
model_path
=
f
'./test_result/
{
model_name
}
_imagenet2012.npz'
...
...
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