Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
e5cf5fad
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看板
提交
e5cf5fad
编写于
9月 16, 2020
作者:
littletomatodonkey
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix decay
上级
20cdde17
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
6 addition
and
12 deletion
+6
-12
ppcls/modeling/architectures/mobilenet_v3.py
ppcls/modeling/architectures/mobilenet_v3.py
+3
-6
ppcls/modeling/architectures/resnest.py
ppcls/modeling/architectures/resnest.py
+3
-6
未找到文件。
ppcls/modeling/architectures/mobilenet_v3.py
浏览文件 @
e5cf5fad
...
...
@@ -23,8 +23,7 @@ import paddle.nn as nn
import
paddle.nn.functional
as
F
from
paddle.nn
import
Conv2d
,
BatchNorm
,
Linear
,
Dropout
from
paddle.nn
import
AdaptiveAvgPool2d
,
MaxPool2d
,
AvgPool2d
# TODO: need to be removed later!
from
paddle.fluid.regularizer
import
L2Decay
from
paddle.regularizer
import
L2Decay
import
math
...
...
@@ -194,11 +193,9 @@ class ConvBNLayer(nn.Layer):
num_channels
=
out_c
,
act
=
None
,
param_attr
=
ParamAttr
(
name
=
name
+
"_bn_scale"
,
regularizer
=
L2Decay
(
regularization_coeff
=
0.0
)),
name
=
name
+
"_bn_scale"
,
regularizer
=
L2Decay
(
0.0
)),
bias_attr
=
ParamAttr
(
name
=
name
+
"_bn_offset"
,
regularizer
=
L2Decay
(
regularization_coeff
=
0.0
)),
name
=
name
+
"_bn_offset"
,
regularizer
=
L2Decay
(
0.0
)),
moving_mean_name
=
name
+
"_bn_mean"
,
moving_variance_name
=
name
+
"_bn_variance"
)
...
...
ppcls/modeling/architectures/resnest.py
浏览文件 @
e5cf5fad
...
...
@@ -24,8 +24,7 @@ from paddle import ParamAttr
from
paddle.nn.initializer
import
MSRA
from
paddle.nn
import
Conv2d
,
BatchNorm
,
Linear
,
Dropout
from
paddle.nn
import
AdaptiveAvgPool2d
,
MaxPool2d
,
AvgPool2d
# TODO: need to be removed later!
from
paddle.fluid.regularizer
import
L2Decay
from
paddle.regularizer
import
L2Decay
__all__
=
[
"ResNeSt50_fast_1s1x64d"
,
"ResNeSt50"
]
...
...
@@ -58,11 +57,9 @@ class ConvBNLayer(nn.Layer):
num_filters
,
act
=
act
,
param_attr
=
ParamAttr
(
name
=
name
+
"_scale"
,
regularizer
=
L2Decay
(
regularization_coeff
=
bn_decay
)),
name
=
name
+
"_scale"
,
regularizer
=
L2Decay
(
bn_decay
)),
bias_attr
=
ParamAttr
(
name
+
"_offset"
,
regularizer
=
L2Decay
(
regularization_coeff
=
bn_decay
)),
name
+
"_offset"
,
regularizer
=
L2Decay
(
bn_decay
)),
moving_mean_name
=
name
+
"_mean"
,
moving_variance_name
=
name
+
"_variance"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录