Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
6da86dd4
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6da86dd4
编写于
3月 25, 2021
作者:
L
lyuwenyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add resnext series
上级
88600d33
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
83 addition
and
9 deletion
+83
-9
hubconf.py
hubconf.py
+83
-9
未找到文件。
hubconf.py
浏览文件 @
6da86dd4
...
...
@@ -484,8 +484,6 @@ def MobileNetV2_x2_0(**kwargs):
return
model
def
MobileNetV3_large_x0_35
(
**
kwargs
):
'''MobileNetV3_large_x0_35
'''
...
...
@@ -514,7 +512,6 @@ def MobileNetV3_large_x0_5(**kwargs):
return
model
def
MobileNetV3_large_x0_75
(
**
kwargs
):
'''MobileNetV3_large_x0_75
'''
...
...
@@ -543,7 +540,6 @@ def MobileNetV3_large_x1_0(**kwargs):
return
model
def
MobileNetV3_large_x1_25
(
**
kwargs
):
'''MobileNetV3_large_x1_25
'''
...
...
@@ -558,7 +554,6 @@ def MobileNetV3_large_x1_25(**kwargs):
return
model
def
MobileNetV3_small_x0_35
(
**
kwargs
):
'''MobileNetV3_small_x0_35
'''
...
...
@@ -573,7 +568,6 @@ def MobileNetV3_small_x0_35(**kwargs):
return
model
def
MobileNetV3_small_x0_5
(
**
kwargs
):
'''MobileNetV3_small_x0_5
'''
...
...
@@ -588,7 +582,6 @@ def MobileNetV3_small_x0_5(**kwargs):
return
model
def
MobileNetV3_small_x0_75
(
**
kwargs
):
'''MobileNetV3_small_x0_75
'''
...
...
@@ -603,7 +596,6 @@ def MobileNetV3_small_x0_75(**kwargs):
return
model
def
MobileNetV3_small_x1_0
(
**
kwargs
):
'''MobileNetV3_small_x1_0
'''
...
...
@@ -618,7 +610,6 @@ def MobileNetV3_small_x1_0(**kwargs):
return
model
def
MobileNetV3_small_x1_25
(
**
kwargs
):
'''MobileNetV3_small_x1_25
'''
...
...
@@ -633,3 +624,86 @@ def MobileNetV3_small_x1_25(**kwargs):
return
model
def
ResNeXt101_32x4d
(
**
kwargs
):
'''ResNeXt101_32x4d
'''
pretrained
=
kwargs
.
pop
(
'pretrained'
,
False
)
model
=
_resnext
.
ResNeXt101_32x4d
(
**
kwargs
)
if
pretrained
:
assert
'ResNeXt101_32x4d'
in
_checkpoints
,
'Not provide `ResNeXt101_32x4d` pretrained model.'
path
=
paddle
.
utils
.
download
.
get_weights_path_from_url
(
_checkpoints
[
'ResNeXt101_32x4d'
])
model
.
set_state_dict
(
paddle
.
load
(
path
))
return
model
def
ResNeXt101_64x4d
(
**
kwargs
):
'''ResNeXt101_64x4d
'''
pretrained
=
kwargs
.
pop
(
'pretrained'
,
False
)
model
=
_resnext
.
ResNeXt101_64x4d
(
**
kwargs
)
if
pretrained
:
assert
'ResNeXt101_64x4d'
in
_checkpoints
,
'Not provide `ResNeXt101_64x4d` pretrained model.'
path
=
paddle
.
utils
.
download
.
get_weights_path_from_url
(
_checkpoints
[
'ResNeXt101_64x4d'
])
model
.
set_state_dict
(
paddle
.
load
(
path
))
return
model
def
ResNeXt152_32x4d
(
**
kwargs
):
'''ResNeXt152_32x4d
'''
pretrained
=
kwargs
.
pop
(
'pretrained'
,
False
)
model
=
_resnext
.
ResNeXt152_32x4d
(
**
kwargs
)
if
pretrained
:
assert
'ResNeXt152_32x4d'
in
_checkpoints
,
'Not provide `ResNeXt152_32x4d` pretrained model.'
path
=
paddle
.
utils
.
download
.
get_weights_path_from_url
(
_checkpoints
[
'ResNeXt152_32x4d'
])
model
.
set_state_dict
(
paddle
.
load
(
path
))
return
model
def
ResNeXt152_64x4d
(
**
kwargs
):
'''ResNeXt152_64x4d
'''
pretrained
=
kwargs
.
pop
(
'pretrained'
,
False
)
model
=
_resnext
.
ResNeXt152_64x4d
(
**
kwargs
)
if
pretrained
:
assert
'ResNeXt152_64x4d'
in
_checkpoints
,
'Not provide `ResNeXt152_64x4d` pretrained model.'
path
=
paddle
.
utils
.
download
.
get_weights_path_from_url
(
_checkpoints
[
'ResNeXt152_64x4d'
])
model
.
set_state_dict
(
paddle
.
load
(
path
))
return
model
def
ResNeXt50_32x4d
(
**
kwargs
):
'''ResNeXt50_32x4d
'''
pretrained
=
kwargs
.
pop
(
'pretrained'
,
False
)
model
=
_resnext
.
ResNeXt50_32x4d
(
**
kwargs
)
if
pretrained
:
assert
'ResNeXt50_32x4d'
in
_checkpoints
,
'Not provide `ResNeXt50_32x4d` pretrained model.'
path
=
paddle
.
utils
.
download
.
get_weights_path_from_url
(
_checkpoints
[
'ResNeXt50_32x4d'
])
model
.
set_state_dict
(
paddle
.
load
(
path
))
return
model
def
ResNeXt50_64x4d
(
**
kwargs
):
'''ResNeXt50_64x4d
'''
pretrained
=
kwargs
.
pop
(
'pretrained'
,
False
)
model
=
_resnext
.
ResNeXt50_64x4d
(
**
kwargs
)
if
pretrained
:
assert
'ResNeXt50_64x4d'
in
_checkpoints
,
'Not provide `ResNeXt50_64x4d` pretrained model.'
path
=
paddle
.
utils
.
download
.
get_weights_path_from_url
(
_checkpoints
[
'ResNeXt50_64x4d'
])
model
.
set_state_dict
(
paddle
.
load
(
path
))
return
model
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录