Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
a018f4a5
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看板
提交
a018f4a5
编写于
12月 20, 2021
作者:
W
weishengyu
提交者:
Tingquan Gao
1月 12, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update format
上级
1132268f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
7 deletion
+7
-7
docs/en/advanced_tutorials/code_overview_en.md
docs/en/advanced_tutorials/code_overview_en.md
+7
-7
未找到文件。
docs/en/advanced_tutorials/code_overview_en.md
浏览文件 @
a018f4a5
...
...
@@ -36,7 +36,7 @@ strategies such as optimizer, learning rate decay, and weight decay strategy, et
<a
name=
"2.1"
></a>
## 2.1 Data
##
#
2.1 Data
For supervised tasks, the training data generally contains the raw data and its annotation.
In a single-label-based image classification task, the raw data refers to the image data,
...
...
@@ -96,7 +96,7 @@ In image classification, the data post-processing is mainly `argmax` operation,
<a
name=
"2.2"
></a>
## 2.2 Model Structure
##
#
2.2 Model Structure
The model in the configuration file is structured as follows:
...
...
@@ -129,7 +129,7 @@ def build_model(config):
<a
name=
"2.3"
></a>
## 2.3 Loss Function
##
#
2.3 Loss Function
PaddleClas implement
`CELoss`
,
`JSDivLoss`
,
`TripletLoss`
,
`CenterLoss`
and other loss functions, all defined in
`ppcls/loss`
.
...
...
@@ -157,7 +157,7 @@ Loss:
<a
name=
"2.4"
></a>
## 2.4 Optimizer, Learning Rate Decay, and Weight Decay
##
#
2.4 Optimizer, Learning Rate Decay, and Weight Decay
In image classification tasks,
`Momentum`
is a commonly used optimizer,
and several optimizer strategies such as
`Momentum`
,
`RMSProp`
,
`Adam`
, and
`AdamW`
are provided in PaddleClas.
...
...
@@ -222,7 +222,7 @@ Different learning rate decay strategies can be found in the file `ppcls/optimiz
<a
name=
"2.5"
></a>
## 2.5 Evaluation During Training
##
#
2.5 Evaluation During Training
When training the model, you can set the interval of model saving,
or you can evaluate the validation set every several epochs so that the model with the best accuracy can be saved.
...
...
@@ -237,7 +237,7 @@ Global:
<a
name=
"2.6"
></a>
## 2.6 Model Saving
##
#
2.6 Model Saving
The model is saved through the
`paddle.save()`
function of the Paddle framework.
The dynamic graph version of the model is saved in the form of a dictionary to facilitate further training.
...
...
@@ -262,7 +262,7 @@ preventing the final saved model from being loaded correctly.
<a
name=
"2.7"
></a>
## 2.7 Model Pruning and Quantification
##
#
2.7 Model Pruning and Quantification
If you want to conduct compression training, please configure with the following fields.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录