Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
ad3c657e
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看板
提交
ad3c657e
编写于
10月 18, 2022
作者:
G
gaotingquan
提交者:
Tingquan Gao
10月 18, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: update VAN_tiny to VAN_B0
上级
fdce7773
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
5 deletion
+5
-5
ppcls/arch/backbone/__init__.py
ppcls/arch/backbone/__init__.py
+1
-1
ppcls/arch/backbone/model_zoo/van.py
ppcls/arch/backbone/model_zoo/van.py
+3
-3
ppcls/configs/ImageNet/VAN/VAN_B0.yaml
ppcls/configs/ImageNet/VAN/VAN_B0.yaml
+1
-1
未找到文件。
ppcls/arch/backbone/__init__.py
浏览文件 @
ad3c657e
...
@@ -66,7 +66,7 @@ from .model_zoo.cspnet import CSPDarkNet53
...
@@ -66,7 +66,7 @@ from .model_zoo.cspnet import CSPDarkNet53
from
.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
.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
.model_zoo.mobilevit
import
MobileViT_XXS
,
MobileViT_XS
,
MobileViT_S
from
.model_zoo.mobilevit
import
MobileViT_XXS
,
MobileViT_XS
,
MobileViT_S
from
.model_zoo.repvgg
import
RepVGG_A0
,
RepVGG_A1
,
RepVGG_A2
,
RepVGG_B0
,
RepVGG_B1
,
RepVGG_B2
,
RepVGG_B1g2
,
RepVGG_B1g4
,
RepVGG_B2g4
,
RepVGG_B3g4
from
.model_zoo.repvgg
import
RepVGG_A0
,
RepVGG_A1
,
RepVGG_A2
,
RepVGG_B0
,
RepVGG_B1
,
RepVGG_B2
,
RepVGG_B1g2
,
RepVGG_B1g4
,
RepVGG_B2g4
,
RepVGG_B3g4
from
.model_zoo.van
import
VAN_
tiny
from
.model_zoo.van
import
VAN_
B0
from
.model_zoo.peleenet
import
PeleeNet
from
.model_zoo.peleenet
import
PeleeNet
from
.model_zoo.convnext
import
ConvNeXt_tiny
from
.model_zoo.convnext
import
ConvNeXt_tiny
from
.model_zoo.cae
import
cae_base_patch16_224
,
cae_large_patch16_224
from
.model_zoo.cae
import
cae_base_patch16_224
,
cae_large_patch16_224
...
...
ppcls/arch/backbone/model_zoo/van.py
浏览文件 @
ad3c657e
...
@@ -24,7 +24,7 @@ from paddle.nn.initializer import TruncatedNormal, Constant
...
@@ -24,7 +24,7 @@ from paddle.nn.initializer import TruncatedNormal, Constant
from
....utils.save_load
import
load_dygraph_pretrain
,
load_dygraph_pretrain_from_url
from
....utils.save_load
import
load_dygraph_pretrain
,
load_dygraph_pretrain_from_url
MODEL_URLS
=
{
MODEL_URLS
=
{
"VAN_
tiny
"
:
""
,
# TODO
"VAN_
B0
"
:
""
,
# TODO
}
}
__all__
=
list
(
MODEL_URLS
.
keys
())
__all__
=
list
(
MODEL_URLS
.
keys
())
...
@@ -306,7 +306,7 @@ def _load_pretrained(pretrained, model, model_url, use_ssld=False):
...
@@ -306,7 +306,7 @@ def _load_pretrained(pretrained, model, model_url, use_ssld=False):
)
)
def
VAN_
tiny
(
pretrained
=
False
,
use_ssld
=
False
,
**
kwargs
):
def
VAN_
B0
(
pretrained
=
False
,
use_ssld
=
False
,
**
kwargs
):
model
=
VAN
(
embed_dims
=
[
32
,
64
,
160
,
256
],
model
=
VAN
(
embed_dims
=
[
32
,
64
,
160
,
256
],
mlp_ratios
=
[
8
,
8
,
4
,
4
],
mlp_ratios
=
[
8
,
8
,
4
,
4
],
norm_layer
=
partial
(
norm_layer
=
partial
(
...
@@ -314,5 +314,5 @@ def VAN_tiny(pretrained=False, use_ssld=False, **kwargs):
...
@@ -314,5 +314,5 @@ def VAN_tiny(pretrained=False, use_ssld=False, **kwargs):
depths
=
[
3
,
3
,
5
,
2
],
depths
=
[
3
,
3
,
5
,
2
],
**
kwargs
)
**
kwargs
)
_load_pretrained
(
_load_pretrained
(
pretrained
,
model
,
MODEL_URLS
[
"VAN_
tiny
"
],
use_ssld
=
use_ssld
)
pretrained
,
model
,
MODEL_URLS
[
"VAN_
B0
"
],
use_ssld
=
use_ssld
)
return
model
return
model
ppcls/configs/ImageNet/VAN/VAN_
tiny
.yaml
→
ppcls/configs/ImageNet/VAN/VAN_
B0
.yaml
浏览文件 @
ad3c657e
...
@@ -18,7 +18,7 @@ Global:
...
@@ -18,7 +18,7 @@ Global:
# model architecture
# model architecture
Arch
:
Arch
:
name
:
VAN_
tiny
name
:
VAN_
B0
class_num
:
1000
class_num
:
1000
drop_path_rate
:
0.1
drop_path_rate
:
0.1
drop_rate
:
0.0
drop_rate
:
0.0
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录