Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
cd9f75cd
P
PaddleClas
项目概览
PaddlePaddle
/
PaddleClas
1 年多 前同步成功
通知
116
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看板
未验证
提交
cd9f75cd
编写于
4月 19, 2020
作者:
C
cuicheng01
提交者:
GitHub
4月 19, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update getting_started.md
上级
48e3cc3c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
7 deletion
+7
-7
docs/zh_CN/tutorials/getting_started.md
docs/zh_CN/tutorials/getting_started.md
+7
-7
未找到文件。
docs/zh_CN/tutorials/getting_started.md
浏览文件 @
cd9f75cd
...
...
@@ -35,7 +35,7 @@ python -m paddle.distributed.launch \
epoch:0 train step:13 loss:7.9561 top1:0.0156 top5:0.1094 lr:0.100000 elapse:0.193
```
可以通过添加-o参数来更新配置
可以通过添加-o参数来更新配置
:
```
bash
python
-m
paddle.distributed.launch
\
...
...
@@ -57,13 +57,13 @@ epoch:0 train step:522 loss:1.6330 lr:0.100000 elapse:0.210
### 2.3 模型微调
以ResNet50_vd和ResNet50_vd_ssld预训练模型对flower102数据集进行微调
以ResNet50_vd和ResNet50_vd_ssld预训练模型对flower102数据集进行微调
。
ResNet50_vd: 在ImageNet1k数据集上训练 top1 acc:79.1% 模型详细信息参考
[
模型库
](
https://paddleclas.readthedocs.io/zh_CN/latest/models/ResNet_and_vd.html
)
。
ResNet50_vd_ssld: 在ImageNet1k数据集训练的蒸馏模型 top1: 82.4% 模型详细信息参考
[
模型库
](
https://paddleclas.readthedocs.io/zh_CN/latest/models/ResNet_and_vd.html
)
。
flower数据集相关信息参考
[
数据文档
](
data.md
)
flower数据集相关信息参考
[
数据文档
](
data.md
)
。
指定pretrained_model参数初始化预训练模型
ResNet50_vd:
...
...
@@ -87,8 +87,8 @@ python -m paddle.distributed.launch \
```
在使用ResNet50_vd预训练模型对flower102数据进行模型微调后,top1 acc 达到 92.71%
在使用ResNet50_vd_ssld预训练模型对flower102数据进行模型微调后,top1 acc 达到94.96%
在使用ResNet50_vd预训练模型对flower102数据进行模型微调后,top1 acc 达到 92.71%
。
在使用ResNet50_vd_ssld预训练模型对flower102数据进行模型微调后,top1 acc 达到94.96%
。
### 2.2 模型评估
...
...
@@ -104,7 +104,7 @@ python tools/eval.py \
## 三、模型推理
PaddlePaddle提供三种方式进行预测推理,接下来介绍如何用预测引擎进行推理:
首先,对训练好的模型进行转换
首先,对训练好的模型进行转换
:
```
bash
python tools/export_model.py
\
-model
=
模型名字
\
...
...
@@ -112,7 +112,7 @@ python tools/export_model.py \
-output_path
=
预测模型保存路径
```
之后,通过预测引擎进行推理
之后,通过预测引擎进行推理
:
```
bash
python tools/infer/predict.py
\
-m
model文件路径
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录