Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
88479828
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
接近 2 年 前同步成功
通知
707
Star
11112
Fork
2696
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
184
列表
看板
标记
里程碑
合并请求
40
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
184
Issue
184
列表
看板
标记
里程碑
合并请求
40
合并请求
40
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
88479828
编写于
3月 31, 2021
作者:
S
shangliang Xu
提交者:
GitHub
3月 31, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add ssd comments test=develop (#2466)
上级
30a40a3a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
40 addition
and
2 deletion
+40
-2
configs/ssd/README.md
configs/ssd/README.md
+2
-2
ppdet/modeling/architectures/ssd.py
ppdet/modeling/architectures/ssd.py
+9
-0
ppdet/modeling/heads/ssd_head.py
ppdet/modeling/heads/ssd_head.py
+14
-0
ppdet/modeling/losses/ssd_loss.py
ppdet/modeling/losses/ssd_loss.py
+15
-0
未找到文件。
configs/ssd/README.md
浏览文件 @
88479828
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
| 骨架网络 | 网络类型 | 每张GPU图片个数 | 学习率策略 |推理时间(fps) | Box AP | 下载 | 配置文件 |
| 骨架网络 | 网络类型 | 每张GPU图片个数 | 学习率策略 |推理时间(fps) | Box AP | 下载 | 配置文件 |
| :-------------- | :------------- | :-----: | :-----: | :------------: | :-----: | :-----------------------------------------------------: | :-----: |
| :-------------- | :------------- | :-----: | :-----: | :------------: | :-----: | :-----------------------------------------------------: | :-----: |
| VGG | SSD | 8 | 240e | ---- | 77.8 |
[
下载链接
](
https://paddledet.bj.bcebos.com/models/ssd_vgg16_300_240e_voc.pdparams
)
|
[
配置文件
](
https://github.com/PaddlePaddle/PaddleDetection/tree/
master/dygraph
/configs/ssd/ssd_vgg16_300_240e_voc.yml
)
|
| VGG | SSD | 8 | 240e | ---- | 77.8 |
[
下载链接
](
https://paddledet.bj.bcebos.com/models/ssd_vgg16_300_240e_voc.pdparams
)
|
[
配置文件
](
https://github.com/PaddlePaddle/PaddleDetection/tree/
develop
/configs/ssd/ssd_vgg16_300_240e_voc.yml
)
|
| MobileNet v1 | SSD | 32 | 120e | ---- | 73.8 |
[
下载链接
](
https://paddledet.bj.bcebos.com/models/ssd_mobilenet_v1_300_120e_voc.pdparams
)
|
[
配置文件
](
https://github.com/PaddlePaddle/PaddleDetection/tree/
master/dygraph
/configs/ssd/ssd_mobilenet_v1_300_120e_voc.yml
)
|
| MobileNet v1 | SSD | 32 | 120e | ---- | 73.8 |
[
下载链接
](
https://paddledet.bj.bcebos.com/models/ssd_mobilenet_v1_300_120e_voc.pdparams
)
|
[
配置文件
](
https://github.com/PaddlePaddle/PaddleDetection/tree/
develop
/configs/ssd/ssd_mobilenet_v1_300_120e_voc.yml
)
|
**注意:**
SSD-VGG使用4GPU在总batch size为32下训练240个epoch。SSD-MobileNetv1使用2GPU在总batch size为64下训练120周期。
**注意:**
SSD-VGG使用4GPU在总batch size为32下训练240个epoch。SSD-MobileNetv1使用2GPU在总batch size为64下训练120周期。
...
...
ppdet/modeling/architectures/ssd.py
浏览文件 @
88479828
...
@@ -24,6 +24,15 @@ __all__ = ['SSD']
...
@@ -24,6 +24,15 @@ __all__ = ['SSD']
@
register
@
register
class
SSD
(
BaseArch
):
class
SSD
(
BaseArch
):
"""
Single Shot MultiBox Detector, see https://arxiv.org/abs/1512.02325
Args:
backbone (nn.Layer): backbone instance
ssd_head (nn.Layer): `SSDHead` instance
post_process (object): `BBoxPostProcess` instance
"""
__category__
=
'architecture'
__category__
=
'architecture'
__inject__
=
[
'post_process'
]
__inject__
=
[
'post_process'
]
...
...
ppdet/modeling/heads/ssd_head.py
浏览文件 @
88479828
...
@@ -68,6 +68,20 @@ class SepConvLayer(nn.Layer):
...
@@ -68,6 +68,20 @@ class SepConvLayer(nn.Layer):
@
register
@
register
class
SSDHead
(
nn
.
Layer
):
class
SSDHead
(
nn
.
Layer
):
"""
SSDHead
Args:
num_classes (int): Number of classes
in_channels (list): Number of channels per input feature
anchor_generator (dict): Configuration of 'AnchorGeneratorSSD' instance
kernel_size (int): Conv kernel size
padding (int): Conv padding
use_sepconv (bool): Use SepConvLayer if true
conv_decay (float): Conv regularization coeff
loss (object): 'SSDLoss' instance
"""
__shared__
=
[
'num_classes'
]
__shared__
=
[
'num_classes'
]
__inject__
=
[
'anchor_generator'
,
'loss'
]
__inject__
=
[
'anchor_generator'
,
'loss'
]
...
...
ppdet/modeling/losses/ssd_loss.py
浏览文件 @
88479828
...
@@ -28,6 +28,21 @@ __all__ = ['SSDLoss']
...
@@ -28,6 +28,21 @@ __all__ = ['SSDLoss']
@
register
@
register
class
SSDLoss
(
nn
.
Layer
):
class
SSDLoss
(
nn
.
Layer
):
"""
SSDLoss
Args:
match_type (str): The type of matching method, should be
'bipartite' or 'per_prediction'. None ('bipartite') by default.
overlap_threshold (float32, optional): If `match_type` is 'per_prediction',
this threshold is to determine the extra matching bboxes based
on the maximum distance, 0.5 by default.
neg_pos_ratio (float): The ratio of negative samples / positive samples.
neg_overlap (float): The overlap threshold of negative samples.
loc_loss_weight (float): The weight of loc_loss.
conf_loss_weight (float): The weight of conf_loss.
"""
def
__init__
(
self
,
def
__init__
(
self
,
match_type
=
'per_prediction'
,
match_type
=
'per_prediction'
,
overlap_threshold
=
0.5
,
overlap_threshold
=
0.5
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录