Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
56c72a85
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看板
提交
56c72a85
编写于
12月 16, 2021
作者:
G
gaotingquan
提交者:
Tingquan Gao
1月 07, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: fix lr
上级
a0f55cd4
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
16 addition
and
17 deletion
+16
-17
ppcls/arch/backbone/__init__.py
ppcls/arch/backbone/__init__.py
+1
-1
ppcls/arch/backbone/model_zoo/pvt_v2.py
ppcls/arch/backbone/model_zoo/pvt_v2.py
+1
-2
ppcls/configs/ImageNet/PVTV2/PVT_V2_B0.yaml
ppcls/configs/ImageNet/PVTV2/PVT_V2_B0.yaml
+1
-1
ppcls/configs/ImageNet/PVTV2/PVT_V2_B1.yaml
ppcls/configs/ImageNet/PVTV2/PVT_V2_B1.yaml
+1
-1
ppcls/configs/ImageNet/PVTV2/PVT_V2_B2.yaml
ppcls/configs/ImageNet/PVTV2/PVT_V2_B2.yaml
+1
-1
ppcls/configs/ImageNet/PVTV2/PVT_V2_B2_Linear.yaml
ppcls/configs/ImageNet/PVTV2/PVT_V2_B2_Linear.yaml
+1
-1
ppcls/configs/ImageNet/PVTV2/PVT_V2_B3.yaml
ppcls/configs/ImageNet/PVTV2/PVT_V2_B3.yaml
+1
-1
ppcls/configs/ImageNet/PVTV2/PVT_V2_B4.yaml
ppcls/configs/ImageNet/PVTV2/PVT_V2_B4.yaml
+1
-1
ppcls/configs/ImageNet/PVTV2/PVT_V2_B5.yaml
ppcls/configs/ImageNet/PVTV2/PVT_V2_B5.yaml
+1
-1
test_tipc/config/PVTV2/PVT_V2_B0.txt
test_tipc/config/PVTV2/PVT_V2_B0.txt
+1
-1
test_tipc/config/PVTV2/PVT_V2_B1.txt
test_tipc/config/PVTV2/PVT_V2_B1.txt
+1
-1
test_tipc/config/PVTV2/PVT_V2_B2.txt
test_tipc/config/PVTV2/PVT_V2_B2.txt
+1
-1
test_tipc/config/PVTV2/PVT_V2_B2_Linear.txt
test_tipc/config/PVTV2/PVT_V2_B2_Linear.txt
+1
-1
test_tipc/config/PVTV2/PVT_V2_B3.txt
test_tipc/config/PVTV2/PVT_V2_B3.txt
+1
-1
test_tipc/config/PVTV2/PVT_V2_B4.txt
test_tipc/config/PVTV2/PVT_V2_B4.txt
+1
-1
test_tipc/config/PVTV2/PVT_V2_B5.txt
test_tipc/config/PVTV2/PVT_V2_B5.txt
+1
-1
未找到文件。
ppcls/arch/backbone/__init__.py
浏览文件 @
56c72a85
...
...
@@ -60,10 +60,10 @@ from ppcls.arch.backbone.model_zoo.rednet import RedNet26, RedNet38, RedNet50, R
from
ppcls.arch.backbone.model_zoo.tnt
import
TNT_small
from
ppcls.arch.backbone.model_zoo.hardnet
import
HarDNet68
,
HarDNet85
,
HarDNet39_ds
,
HarDNet68_ds
from
ppcls.arch.backbone.model_zoo.cspnet
import
CSPDarkNet53
from
ppcls.arch.backbone.model_zoo.pvt_v2
import
PVT_V2_B0
,
PVT_V2_B1
,
PVT_V2_B2_Linear
,
PVT_V2_B2
,
PVT_V2_B3
,
PVT_V2_B4
,
PVT_V2_B5
from
ppcls.arch.backbone.variant_models.resnet_variant
import
ResNet50_last_stage_stride1
from
ppcls.arch.backbone.variant_models.vgg_variant
import
VGG19Sigmoid
from
ppcls.arch.backbone.variant_models.pp_lcnet_variant
import
PPLCNet_x2_5_Tanh
from
ppcls.arch.backbone.model_zoo.pvt_v2
import
PVT_V2_B0
,
PVT_V2_B1
,
PVT_V2_B2_Linear
,
PVT_V2_B2
,
PVT_V2_B3
,
PVT_V2_B4
,
PVT_V2_B5
# help whl get all the models' api (class type) and components' api (func type)
...
...
ppcls/arch/backbone/model_zoo/pvt_v2.py
浏览文件 @
56c72a85
...
...
@@ -95,7 +95,7 @@ class Attention(nn.Layer):
sr_ratio
=
1
,
linear
=
False
):
super
().
__init__
()
assert
dim
%
num_heads
==
0
,
f
"dim
{
dim
}
should be divided by num_heads
{
num_heads
}
."
assert
dim
%
num_heads
==
0
self
.
dim
=
dim
self
.
num_heads
=
num_heads
...
...
@@ -195,7 +195,6 @@ class Block(nn.Layer):
proj_drop
=
drop
,
sr_ratio
=
sr_ratio
,
linear
=
linear
)
# NOTE: drop path for stochastic depth, we shall see if this is better than dropout here
self
.
drop_path
=
DropPath
(
drop_path
)
if
drop_path
>
0.
else
Identity
()
self
.
norm2
=
norm_layer
(
dim
)
mlp_hidden_dim
=
int
(
dim
*
mlp_ratio
)
...
...
ppcls/configs/ImageNet/PVTV2/PVT_V2_B0.yaml
浏览文件 @
56c72a85
...
...
@@ -44,7 +44,7 @@ Optimizer:
one_dim_param_no_weight_decay
:
True
lr
:
name
:
Cosine
learning_rate
:
1e-3
learning_rate
:
5e-4
eta_min
:
1e-5
warmup_epoch
:
20
warmup_start_lr
:
1e-6
...
...
ppcls/configs/ImageNet/PVTV2/PVT_V2_B1.yaml
浏览文件 @
56c72a85
...
...
@@ -44,7 +44,7 @@ Optimizer:
one_dim_param_no_weight_decay
:
True
lr
:
name
:
Cosine
learning_rate
:
1e-3
learning_rate
:
5e-4
eta_min
:
1e-5
warmup_epoch
:
20
warmup_start_lr
:
1e-6
...
...
ppcls/configs/ImageNet/PVTV2/PVT_V2_B2.yaml
浏览文件 @
56c72a85
...
...
@@ -44,7 +44,7 @@ Optimizer:
one_dim_param_no_weight_decay
:
True
lr
:
name
:
Cosine
learning_rate
:
1e-3
learning_rate
:
5e-4
eta_min
:
1e-5
warmup_epoch
:
20
warmup_start_lr
:
1e-6
...
...
ppcls/configs/ImageNet/PVTV2/PVT_V2_B2_Linear.yaml
浏览文件 @
56c72a85
...
...
@@ -44,7 +44,7 @@ Optimizer:
one_dim_param_no_weight_decay
:
True
lr
:
name
:
Cosine
learning_rate
:
1e-3
learning_rate
:
5e-4
eta_min
:
1e-5
warmup_epoch
:
20
warmup_start_lr
:
1e-6
...
...
ppcls/configs/ImageNet/PVTV2/PVT_V2_B3.yaml
浏览文件 @
56c72a85
...
...
@@ -45,7 +45,7 @@ Optimizer:
one_dim_param_no_weight_decay
:
True
lr
:
name
:
Cosine
learning_rate
:
1e-3
learning_rate
:
5e-4
eta_min
:
1e-5
warmup_epoch
:
20
warmup_start_lr
:
1e-6
...
...
ppcls/configs/ImageNet/PVTV2/PVT_V2_B4.yaml
浏览文件 @
56c72a85
...
...
@@ -45,7 +45,7 @@ Optimizer:
one_dim_param_no_weight_decay
:
True
lr
:
name
:
Cosine
learning_rate
:
1e-3
learning_rate
:
5e-4
eta_min
:
1e-5
warmup_epoch
:
20
warmup_start_lr
:
1e-6
...
...
ppcls/configs/ImageNet/PVTV2/PVT_V2_B5.yaml
浏览文件 @
56c72a85
...
...
@@ -45,7 +45,7 @@ Optimizer:
one_dim_param_no_weight_decay
:
True
lr
:
name
:
Cosine
learning_rate
:
1e-3
learning_rate
:
5e-4
eta_min
:
1e-5
warmup_epoch
:
20
warmup_start_lr
:
1e-6
...
...
test_tipc/config/PVTV2/PVT_V2_B0.txt
浏览文件 @
56c72a85
...
...
@@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/P
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=
384 -o PreProcess.transform_ops.1.CropImage.size=38
4
inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=
256 -o PreProcess.transform_ops.1.CropImage.size=22
4
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
test_tipc/config/PVTV2/PVT_V2_B1.txt
浏览文件 @
56c72a85
...
...
@@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/P
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=
384 -o PreProcess.transform_ops.1.CropImage.size=38
4
inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=
256 -o PreProcess.transform_ops.1.CropImage.size=22
4
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
test_tipc/config/PVTV2/PVT_V2_B2.txt
浏览文件 @
56c72a85
...
...
@@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/P
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=
384 -o PreProcess.transform_ops.1.CropImage.size=38
4
inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=
256 -o PreProcess.transform_ops.1.CropImage.size=22
4
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
test_tipc/config/PVTV2/PVT_V2_B2_Linear.txt
浏览文件 @
56c72a85
...
...
@@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/P
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=
384 -o PreProcess.transform_ops.1.CropImage.size=38
4
inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=
256 -o PreProcess.transform_ops.1.CropImage.size=22
4
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
test_tipc/config/PVTV2/PVT_V2_B3.txt
浏览文件 @
56c72a85
...
...
@@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/P
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=
384 -o PreProcess.transform_ops.1.CropImage.size=38
4
inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=
256 -o PreProcess.transform_ops.1.CropImage.size=22
4
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
test_tipc/config/PVTV2/PVT_V2_B4.txt
浏览文件 @
56c72a85
...
...
@@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/P
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=
384 -o PreProcess.transform_ops.1.CropImage.size=38
4
inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=
256 -o PreProcess.transform_ops.1.CropImage.size=22
4
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
test_tipc/config/PVTV2/PVT_V2_B5.txt
浏览文件 @
56c72a85
...
...
@@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/P
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=
384 -o PreProcess.transform_ops.1.CropImage.size=38
4
inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=
256 -o PreProcess.transform_ops.1.CropImage.size=22
4
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录