Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleDetection
提交
bd0527b8
P
PaddleDetection
项目概览
s920243400
/
PaddleDetection
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleDetection
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
bd0527b8
编写于
8月 26, 2021
作者:
C
CHENSONG
提交者:
GitHub
8月 26, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Swin faster rcnn v1 (#4050)
* add faster rcnn with swin_transformer tiny
上级
18a1f730
变更
8
展开全部
隐藏空白更改
内联
并排
Showing
8 changed file
with
923 addition
and
0 deletion
+923
-0
configs/faster_rcnn/_base_/faster_rcnn_swin_transformer.yml
configs/faster_rcnn/_base_/faster_rcnn_swin_transformer.yml
+73
-0
configs/faster_rcnn/_base_/faster_rcnn_swin_transformer_reader.yml
...aster_rcnn/_base_/faster_rcnn_swin_transformer_reader.yml
+41
-0
configs/faster_rcnn/_base_/optimizer_swin_transformer_1x.yml
configs/faster_rcnn/_base_/optimizer_swin_transformer_1x.yml
+17
-0
configs/faster_rcnn/faster_rcnn_swin_transformer_tiny_1x_coco.yml
...faster_rcnn/faster_rcnn_swin_transformer_tiny_1x_coco.yml
+8
-0
configs/faster_rcnn/faster_rcnn_swin_transformer_tiny_2x_coco.yml
...faster_rcnn/faster_rcnn_swin_transformer_tiny_2x_coco.yml
+22
-0
configs/faster_rcnn/faster_rcnn_swin_transformer_tiny_3x_coco.yml
...faster_rcnn/faster_rcnn_swin_transformer_tiny_3x_coco.yml
+22
-0
ppdet/modeling/backbones/__init__.py
ppdet/modeling/backbones/__init__.py
+2
-0
ppdet/modeling/backbones/swin_transformer.py
ppdet/modeling/backbones/swin_transformer.py
+738
-0
未找到文件。
configs/faster_rcnn/_base_/faster_rcnn_swin_transformer.yml
0 → 100644
浏览文件 @
bd0527b8
architecture
:
FasterRCNN
FasterRCNN
:
backbone
:
SwinTransformer
neck
:
FPN
rpn_head
:
RPNHead
bbox_head
:
BBoxHead
bbox_post_process
:
BBoxPostProcess
SwinTransformer
:
embed_dim
:
96
depths
:
[
2
,
2
,
6
,
2
]
num_heads
:
[
3
,
6
,
12
,
24
]
window_size
:
7
ape
:
false
drop_path_rate
:
0.1
patch_norm
:
true
out_indices
:
[
0
,
1
,
2
,
3
]
drop_path_rate
:
0.1
pretrained
:
https://paddledet.bj.bcebos.com/models/pretrained/swin_tiny_patch4_window7_224.pdparams
FPN
:
out_channel
:
256
RPNHead
:
anchor_generator
:
aspect_ratios
:
[
0.5
,
1.0
,
2.0
]
anchor_sizes
:
[[
32
],
[
64
],
[
128
],
[
256
],
[
512
]]
strides
:
[
4
,
8
,
16
,
32
,
64
]
rpn_target_assign
:
batch_size_per_im
:
256
fg_fraction
:
0.5
negative_overlap
:
0.3
positive_overlap
:
0.7
use_random
:
True
train_proposal
:
min_size
:
0.0
nms_thresh
:
0.7
pre_nms_top_n
:
2000
post_nms_top_n
:
1000
topk_after_collect
:
True
test_proposal
:
min_size
:
0.0
nms_thresh
:
0.7
pre_nms_top_n
:
1000
post_nms_top_n
:
1000
BBoxHead
:
head
:
TwoFCHead
roi_extractor
:
resolution
:
7
sampling_ratio
:
0
aligned
:
True
bbox_assigner
:
BBoxAssigner
BBoxAssigner
:
batch_size_per_im
:
512
bg_thresh
:
0.5
fg_thresh
:
0.5
fg_fraction
:
0.25
use_random
:
True
TwoFCHead
:
out_channel
:
1024
BBoxPostProcess
:
decode
:
RCNNBox
nms
:
name
:
MultiClassNMS
keep_top_k
:
100
score_threshold
:
0.05
nms_threshold
:
0.5
configs/faster_rcnn/_base_/faster_rcnn_swin_transformer_reader.yml
0 → 100644
浏览文件 @
bd0527b8
worker_num
:
2
TrainReader
:
sample_transforms
:
-
Decode
:
{}
-
RandomResizeCrop
:
{
resizes
:
[
400
,
500
,
600
],
cropsizes
:
[[
384
,
600
],
],
prob
:
0.5
}
-
RandomResize
:
{
target_size
:
[[
480
,
1333
],
[
512
,
1333
],
[
544
,
1333
],
[
576
,
1333
],
[
608
,
1333
],
[
640
,
1333
],
[
672
,
1333
],
[
704
,
1333
],
[
736
,
1333
],
[
768
,
1333
],
[
800
,
1333
]],
keep_ratio
:
True
,
interp
:
2
}
-
RandomFlip
:
{
prob
:
0.5
}
-
NormalizeImage
:
{
is_scale
:
true
,
mean
:
[
0.485
,
0.456
,
0.406
],
std
:
[
0.229
,
0.224
,
0.225
]}
-
Permute
:
{}
batch_transforms
:
-
PadBatch
:
{
pad_to_stride
:
32
}
batch_size
:
2
shuffle
:
true
drop_last
:
true
collate_batch
:
false
EvalReader
:
sample_transforms
:
-
Decode
:
{}
-
Resize
:
{
interp
:
2
,
target_size
:
[
800
,
1333
],
keep_ratio
:
True
}
-
NormalizeImage
:
{
is_scale
:
true
,
mean
:
[
0.485
,
0.456
,
0.406
],
std
:
[
0.229
,
0.224
,
0.225
]}
-
Permute
:
{}
batch_transforms
:
-
PadBatch
:
{
pad_to_stride
:
32
}
batch_size
:
1
shuffle
:
false
drop_last
:
false
drop_empty
:
false
TestReader
:
sample_transforms
:
-
Decode
:
{}
-
Resize
:
{
interp
:
2
,
target_size
:
[
800
,
1333
],
keep_ratio
:
True
}
-
NormalizeImage
:
{
is_scale
:
true
,
mean
:
[
0.485
,
0.456
,
0.406
],
std
:
[
0.229
,
0.224
,
0.225
]}
-
Permute
:
{}
batch_transforms
:
-
PadBatch
:
{
pad_to_stride
:
32
}
batch_size
:
1
shuffle
:
false
drop_last
:
false
configs/faster_rcnn/_base_/optimizer_swin_transformer_1x.yml
0 → 100644
浏览文件 @
bd0527b8
epoch
:
12
LearningRate
:
base_lr
:
0.0001
schedulers
:
-
!PiecewiseDecay
gamma
:
0.1
milestones
:
[
8
,
11
]
-
!LinearWarmup
start_factor
:
0.1
steps
:
1000
OptimizerBuilder
:
clip_grad_by_norm
:
1.0
optimizer
:
type
:
AdamW
weight_decay
:
0.05
configs/faster_rcnn/faster_rcnn_swin_transformer_tiny_1x_coco.yml
0 → 100644
浏览文件 @
bd0527b8
_BASE_
:
[
'
../datasets/coco_detection.yml'
,
'
../runtime.yml'
,
'
_base_/optimizer_swin_transformer_1x.yml'
,
'
_base_/faster_rcnn_swin_transformer.yml'
,
'
_base_/faster_rcnn_swin_transformer_reader.yml'
,
]
weights
:
output/faster_swin_transformer_tiny_1x/model_final
configs/faster_rcnn/faster_rcnn_swin_transformer_tiny_2x_coco.yml
0 → 100644
浏览文件 @
bd0527b8
_BASE_
:
[
'
faster_rcnn_swin_transformer_tiny_1x_coco.yml'
,
]
weights
:
output/faster_swin_transformer_tiny_2x/model_final
epoch
:
24
LearningRate
:
base_lr
:
0.0001
schedulers
:
-
!PiecewiseDecay
gamma
:
0.1
milestones
:
[
16
,
22
]
-
!LinearWarmup
start_factor
:
0.1
steps
:
1000
OptimizerBuilder
:
clip_grad_by_norm
:
1.0
optimizer
:
type
:
AdamW
weight_decay
:
0.05
configs/faster_rcnn/faster_rcnn_swin_transformer_tiny_3x_coco.yml
0 → 100644
浏览文件 @
bd0527b8
_BASE_
:
[
'
faster_rcnn_swin_transformer_tiny_1x_coco.yml'
,
]
weights
:
output/faster_swin_transformer_tiny_3x/model_final
epoch
:
36
LearningRate
:
base_lr
:
0.0001
schedulers
:
-
!PiecewiseDecay
gamma
:
0.1
milestones
:
[
24
,
33
]
-
!LinearWarmup
start_factor
:
0.1
steps
:
1000
OptimizerBuilder
:
clip_grad_by_norm
:
1.0
optimizer
:
type
:
AdamW
weight_decay
:
0.05
ppdet/modeling/backbones/__init__.py
浏览文件 @
bd0527b8
...
...
@@ -25,6 +25,7 @@ from . import senet
from
.
import
res2net
from
.
import
dla
from
.
import
shufflenet_v2
from
.
import
swin_transformer
from
.vgg
import
*
from
.resnet
import
*
...
...
@@ -39,3 +40,4 @@ from .senet import *
from
.res2net
import
*
from
.dla
import
*
from
.shufflenet_v2
import
*
from
.swin_transformer
import
*
ppdet/modeling/backbones/swin_transformer.py
0 → 100644
浏览文件 @
bd0527b8
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录