Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
a3bf27da
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
大约 1 年 前同步成功
通知
695
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看板
未验证
提交
a3bf27da
编写于
5月 18, 2020
作者:
C
CodesFarmer
提交者:
GitHub
5月 18, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
keep the option 'num_classes' and 'with_background' consistent (#727)
上级
1b16f475
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
19 addition
and
19 deletion
+19
-19
configs/anchor_free/fcos_dcn_r50_fpn_1x.yml
configs/anchor_free/fcos_dcn_r50_fpn_1x.yml
+6
-6
configs/anchor_free/fcos_r50_fpn_1x.yml
configs/anchor_free/fcos_r50_fpn_1x.yml
+5
-5
configs/anchor_free/fcos_r50_fpn_multiscale_2x.yml
configs/anchor_free/fcos_r50_fpn_multiscale_2x.yml
+5
-5
ppdet/data/transform/batch_operators.py
ppdet/data/transform/batch_operators.py
+1
-1
ppdet/modeling/anchor_heads/fcos_head.py
ppdet/modeling/anchor_heads/fcos_head.py
+2
-2
未找到文件。
configs/anchor_free/fcos_dcn_r50_fpn_1x.yml
浏览文件 @
a3bf27da
...
...
@@ -8,7 +8,7 @@ save_dir: output
pretrain_weights
:
https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_cos_pretrained.tar
metric
:
COCO
weights
:
output/fcos_dcn_r50_fpn_1x/model_final
num_classes
:
8
1
num_classes
:
8
0
FCOS
:
backbone
:
ResNet
...
...
@@ -32,7 +32,7 @@ FPN:
has_extra_convs
:
true
FCOSHead
:
num_classes
:
8
1
num_classes
:
8
0
fpn_stride
:
[
8
,
16
,
32
,
64
,
128
]
num_convs
:
4
norm_type
:
"
gn"
...
...
@@ -81,7 +81,7 @@ TrainReader:
image_dir
:
train2017
anno_path
:
annotations/instances_train2017.json
dataset_dir
:
dataset/coco
with_background
:
tru
e
with_background
:
fals
e
sample_transforms
:
-
!DecodeImage
to_rgb
:
true
...
...
@@ -111,7 +111,7 @@ TrainReader:
norm_reg_targets
:
True
batch_size
:
2
shuffle
:
true
worker_num
:
16
worker_num
:
4
use_process
:
false
EvalReader
:
...
...
@@ -144,9 +144,9 @@ EvalReader:
-
!PadBatch
pad_to_stride
:
128
use_padded_im_info
:
true
batch_size
:
8
batch_size
:
1
shuffle
:
false
worker_num
:
2
worker_num
:
1
use_process
:
false
TestReader
:
...
...
configs/anchor_free/fcos_r50_fpn_1x.yml
浏览文件 @
a3bf27da
...
...
@@ -8,7 +8,7 @@ save_dir: output
pretrain_weights
:
https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_cos_pretrained.tar
metric
:
COCO
weights
:
output/fcos_r50_fpn_1x/model_final
num_classes
:
8
1
num_classes
:
8
0
FCOS
:
backbone
:
ResNet
...
...
@@ -31,7 +31,7 @@ FPN:
has_extra_convs
:
true
FCOSHead
:
num_classes
:
8
1
num_classes
:
8
0
fpn_stride
:
[
8
,
16
,
32
,
64
,
128
]
num_convs
:
4
norm_type
:
"
gn"
...
...
@@ -80,7 +80,7 @@ TrainReader:
image_dir
:
train2017
anno_path
:
annotations/instances_train2017.json
dataset_dir
:
dataset/coco
with_background
:
tru
e
with_background
:
fals
e
sample_transforms
:
-
!DecodeImage
to_rgb
:
true
...
...
@@ -110,7 +110,7 @@ TrainReader:
norm_reg_targets
:
True
batch_size
:
2
shuffle
:
true
worker_num
:
16
worker_num
:
4
use_process
:
false
EvalReader
:
...
...
@@ -143,7 +143,7 @@ EvalReader:
-
!PadBatch
pad_to_stride
:
128
use_padded_im_info
:
true
batch_size
:
8
batch_size
:
1
shuffle
:
false
worker_num
:
2
use_process
:
false
...
...
configs/anchor_free/fcos_r50_fpn_multiscale_2x.yml
浏览文件 @
a3bf27da
...
...
@@ -8,7 +8,7 @@ save_dir: output
pretrain_weights
:
https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_cos_pretrained.tar
metric
:
COCO
weights
:
output/fcos_r50_fpn_multiscale_2x/model_final
num_classes
:
8
1
num_classes
:
8
0
FCOS
:
backbone
:
ResNet
...
...
@@ -31,7 +31,7 @@ FPN:
has_extra_convs
:
true
FCOSHead
:
num_classes
:
8
1
num_classes
:
8
0
fpn_stride
:
[
8
,
16
,
32
,
64
,
128
]
num_convs
:
4
norm_type
:
"
gn"
...
...
@@ -80,7 +80,7 @@ TrainReader:
image_dir
:
train2017
anno_path
:
annotations/instances_train2017.json
dataset_dir
:
dataset/coco
with_background
:
tru
e
with_background
:
fals
e
sample_transforms
:
-
!DecodeImage
to_rgb
:
true
...
...
@@ -110,7 +110,7 @@ TrainReader:
norm_reg_targets
:
True
batch_size
:
2
shuffle
:
true
worker_num
:
16
worker_num
:
4
use_process
:
false
EvalReader
:
...
...
@@ -143,7 +143,7 @@ EvalReader:
-
!PadBatch
pad_to_stride
:
128
use_padded_im_info
:
true
batch_size
:
8
batch_size
:
1
shuffle
:
false
worker_num
:
2
use_process
:
false
...
...
ppdet/data/transform/batch_operators.py
浏览文件 @
a3bf27da
...
...
@@ -439,7 +439,7 @@ class Gt2FCOSTarget(BaseOperator):
points2gtarea
[
is_match_current_level
==
0
]
=
self
.
INF
points2min_area
=
points2gtarea
.
min
(
axis
=
1
)
points2min_area_ind
=
points2gtarea
.
argmin
(
axis
=
1
)
labels
=
gt_class
[
points2min_area_ind
]
labels
=
gt_class
[
points2min_area_ind
]
+
1
labels
[
points2min_area
==
self
.
INF
]
=
0
reg_targets
=
reg_targets
[
range
(
xs
.
shape
[
0
]),
points2min_area_ind
]
ctn_targets
=
np
.
sqrt
((
reg_targets
[:,
[
0
,
2
]].
min
(
axis
=
1
)
/
\
...
...
ppdet/modeling/anchor_heads/fcos_head.py
浏览文件 @
a3bf27da
...
...
@@ -50,7 +50,7 @@ class FCOSHead(object):
__shared__
=
[
'num_classes'
]
def
__init__
(
self
,
num_classes
=
8
1
,
num_classes
=
8
0
,
fpn_stride
=
[
8
,
16
,
32
,
64
,
128
],
prior_prob
=
0.01
,
num_convs
=
4
,
...
...
@@ -65,7 +65,7 @@ class FCOSHead(object):
keep_top_k
=
100
,
nms_threshold
=
0.45
,
background_label
=-
1
).
__dict__
):
self
.
num_classes
=
num_classes
-
1
self
.
num_classes
=
num_classes
self
.
fpn_stride
=
fpn_stride
[::
-
1
]
self
.
prior_prob
=
prior_prob
self
.
num_convs
=
num_convs
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录