Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
c0dfe472
P
PaddleClas
项目概览
PaddlePaddle
/
PaddleClas
大约 1 年 前同步成功
通知
115
Star
4999
Fork
1114
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
6
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleClas
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
6
合并请求
6
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
c0dfe472
编写于
5月 09, 2021
作者:
W
Walter
提交者:
GitHub
5月 09, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix quick start doc bugs (#716)
上级
7ba0c51f
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
17 addition
and
21 deletion
+17
-21
docs/zh_CN/tutorials/quick_start_new_user.md
docs/zh_CN/tutorials/quick_start_new_user.md
+17
-21
未找到文件。
docs/zh_CN/tutorials/quick_start_new_user.md
浏览文件 @
c0dfe472
...
...
@@ -167,7 +167,7 @@ python tools/train.py -c ./configs/quick_start/ResNet50_vd_finetune.yaml
```
shell
cd
$path_to_PaddleClas
python tools/infer/infer.py
--model
ShuffleNetV2_x0_25
-i
dataset/flowers102/jpg/image_00001.jpg
--pretrained_model
output/ShuffleNetV2_x0_25/best_model/ppcls
--use_gpu
False
python tools/infer/infer.py
--model
ShuffleNetV2_x0_25
-i
dataset/flowers102/jpg/image_00001.jpg
--pretrained_model
output/ShuffleNetV2_x0_25/best_model/ppcls
--class_num
102
--use_gpu
False
```
其中主要参数如下:
...
...
@@ -175,31 +175,27 @@ python tools/infer/infer.py --model ShuffleNetV2_x0_25 -i dataset/flowers102/jpg
-
`--model`
:训练时使用擦网络模型,如 ShuffleNetV2_x0_25、ResNet50_vd,具体可查看训练时
`yaml`
文件中
**ARCHITECTURE**
下
**name**
参数的值
-
`-i`
:图像文件路径或者图像所在目录
-
`--pretrained_model`
: 存放的模型权重位置。上述CPU训练过程中,最优模型存放位置如下:
`output/ShuffleNetV2_x0_25/best_model/ppcls.pdparams`
,此时此参数应如下填写:
`output/ShuffleNetV2_x0_25/best_model/ppcls`
,去掉
`.pdparams`
-
`--class_num`
:为图像类别数,
`flowers102`
数据集为102类。若用其他数据集,改成相应类别数即可
-
`--use_gpu`
:是否使用GPU
`-i`
输入为单张图像路径,运行成功后,示例结果如下:
`File:image_00001.jpg, Top-1 result: class id(s): [72
8
], score(s): [0.03]`
`File:image_00001.jpg, Top-1 result: class id(s): [72], score(s): [0.03]`
`-i`
输
出为图像
目录,运行成功后,示例结果如下:
`-i`
输
入为图像集所在
目录,运行成功后,示例结果如下:
```
txt
Current image file: dataset/flowers102/jpg/image_03946.jpg
top1, class id: 124, probability: 0.2043
top2, class id: 281, probability: 0.1033
top3, class id: 458, probability: 0.0505
top4, class id: 688, probability: 0.0379
top5, class id: 789, probability: 0.0357
Current image file: dataset/flowers102/jpg/image_02480.jpg
top1, class id: 264, probability: 0.0055
top2, class id: 570, probability: 0.0041
top3, class id: 795, probability: 0.0037
top4, class id: 789, probability: 0.0037
top5, class id: 268, probability: 0.0033
Current image file: dataset/flowers102/jpg/image_00297.jpg
top1, class id: 264, probability: 0.0035
top2, class id: 500, probability: 0.0029
top3, class id: 65, probability: 0.0027
top4, class id: 2, probability: 0.0024
top5, class id: 613, probability: 0.0023
File:image_02993.jpg, Top-1 result: class id(s): [77], score(s): [0.02]
File:image_00448.jpg, Top-1 result: class id(s): [77], score(s): [0.02]
File:image_08001.jpg, Top-1 result: class id(s): [77], score(s): [0.01]
File:image_00804.jpg, Top-1 result: class id(s): [100], score(s): [0.02]
File:image_01842.jpg, Top-1 result: class id(s): [100], score(s): [0.02]
File:image_02790.jpg, Top-1 result: class id(s): [70], score(s): [0.05]
File:image_03412.jpg, Top-1 result: class id(s): [100], score(s): [0.02]
File:image_05196.jpg, Top-1 result: class id(s): [77], score(s): [0.02]
File:image_06860.jpg, Top-1 result: class id(s): [70], score(s): [0.03]
File:image_05312.jpg, Top-1 result: class id(s): [77], score(s): [0.02]
File:image_05930.jpg, Top-1 result: class id(s): [100], score(s): [0.02]
File:image_05711.jpg, Top-1 result: class id(s): [77], score(s): [0.01]
File:image_01180.jpg, Top-1 result: class id(s): [70], score(s): [0.03]
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录