Spaces:
Sleeping
Sleeping
zhijian12345
commited on
Commit
•
3bdb19a
1
Parent(s):
1d56b50
Update checkpoint
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import gradio as gr
|
|
10 |
import numpy as np
|
11 |
|
12 |
# 加载图像分类模型
|
13 |
-
checkpoint_dir = "./checkpoint
|
14 |
classifier = pipeline("image-classification", model=checkpoint_dir) # 创建图像分类器模型
|
15 |
vitclassifier = pipeline("image-classification",model="google/vit-base-patch16-224")
|
16 |
|
|
|
10 |
import numpy as np
|
11 |
|
12 |
# 加载图像分类模型
|
13 |
+
checkpoint_dir = "./checkpoint-905" # 模型检查点目录
|
14 |
classifier = pipeline("image-classification", model=checkpoint_dir) # 创建图像分类器模型
|
15 |
vitclassifier = pipeline("image-classification",model="google/vit-base-patch16-224")
|
16 |
|