Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
5e90c3f1
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看板
提交
5e90c3f1
编写于
9月 16, 2020
作者:
L
liuhui29
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
set use_fine_grained_loss=True as default, and remove use_fine_grained_loss=True from config
上级
ee780976
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
4 addition
and
31 deletion
+4
-31
configs/dcn/yolov3_enhance_reader.yml
configs/dcn/yolov3_enhance_reader.yml
+0
-1
configs/dcn/yolov3_r50vd_dcn_db_iouaware_obj365_pretrained_coco.yml
...n/yolov3_r50vd_dcn_db_iouaware_obj365_pretrained_coco.yml
+0
-3
configs/dcn/yolov3_r50vd_dcn_db_iouloss_obj365_pretrained_coco.yml
...cn/yolov3_r50vd_dcn_db_iouloss_obj365_pretrained_coco.yml
+0
-3
configs/dcn/yolov3_r50vd_dcn_db_obj365_pretrained_coco.yml
configs/dcn/yolov3_r50vd_dcn_db_obj365_pretrained_coco.yml
+0
-3
configs/dcn/yolov3_r50vd_dcn_obj365_pretrained_coco.yml
configs/dcn/yolov3_r50vd_dcn_obj365_pretrained_coco.yml
+0
-3
configs/ppyolo/ppyolo.yml
configs/ppyolo/ppyolo.yml
+0
-3
configs/ppyolo/ppyolo_2x.yml
configs/ppyolo/ppyolo_2x.yml
+0
-3
configs/ppyolo/ppyolo_r18vd.yml
configs/ppyolo/ppyolo_r18vd.yml
+0
-3
configs/ppyolo/ppyolo_test.yml
configs/ppyolo/ppyolo_test.yml
+0
-2
configs/yolov4/yolov4_cspdarknet.yml
configs/yolov4/yolov4_cspdarknet.yml
+0
-1
configs/yolov4/yolov4_cspdarknet_coco.yml
configs/yolov4/yolov4_cspdarknet_coco.yml
+0
-1
configs/yolov4/yolov4_cspdarknet_voc.yml
configs/yolov4/yolov4_cspdarknet_voc.yml
+0
-1
ppdet/data/reader.py
ppdet/data/reader.py
+1
-1
ppdet/modeling/architectures/yolo.py
ppdet/modeling/architectures/yolo.py
+2
-2
ppdet/modeling/losses/yolo_loss.py
ppdet/modeling/losses/yolo_loss.py
+1
-1
未找到文件。
configs/dcn/yolov3_enhance_reader.yml
浏览文件 @
5e90c3f1
...
@@ -2,7 +2,6 @@ TrainReader:
...
@@ -2,7 +2,6 @@ TrainReader:
inputs_def
:
inputs_def
:
fields
:
[
'
image'
,
'
gt_bbox'
,
'
gt_class'
,
'
gt_score'
]
fields
:
[
'
image'
,
'
gt_bbox'
,
'
gt_class'
,
'
gt_score'
]
num_max_boxes
:
50
num_max_boxes
:
50
use_fine_grained_loss
:
true
dataset
:
dataset
:
!COCODataSet
!COCODataSet
image_dir
:
train2017
image_dir
:
train2017
...
...
configs/dcn/yolov3_r50vd_dcn_db_iouaware_obj365_pretrained_coco.yml
浏览文件 @
5e90c3f1
...
@@ -8,12 +8,10 @@ metric: COCO
...
@@ -8,12 +8,10 @@ metric: COCO
pretrain_weights
:
https://paddlemodels.bj.bcebos.com/object_detection/ResNet50_vd_dcn_db_obj365_pretrained.tar
pretrain_weights
:
https://paddlemodels.bj.bcebos.com/object_detection/ResNet50_vd_dcn_db_obj365_pretrained.tar
weights
:
output/yolov3_r50vd_dcn_db_iouaware_obj365_pretrained_coco/model_final
weights
:
output/yolov3_r50vd_dcn_db_iouaware_obj365_pretrained_coco/model_final
num_classes
:
80
num_classes
:
80
use_fine_grained_loss
:
true
YOLOv3
:
YOLOv3
:
backbone
:
ResNet
backbone
:
ResNet
yolo_head
:
YOLOv3Head
yolo_head
:
YOLOv3Head
use_fine_grained_loss
:
true
ResNet
:
ResNet
:
norm_type
:
sync_bn
norm_type
:
sync_bn
...
@@ -47,7 +45,6 @@ YOLOv3Loss:
...
@@ -47,7 +45,6 @@ YOLOv3Loss:
batch_size
:
8
batch_size
:
8
ignore_thresh
:
0.7
ignore_thresh
:
0.7
label_smooth
:
false
label_smooth
:
false
use_fine_grained_loss
:
true
iou_loss
:
IouLoss
iou_loss
:
IouLoss
iou_aware_loss
:
IouAwareLoss
iou_aware_loss
:
IouAwareLoss
...
...
configs/dcn/yolov3_r50vd_dcn_db_iouloss_obj365_pretrained_coco.yml
浏览文件 @
5e90c3f1
...
@@ -8,12 +8,10 @@ metric: COCO
...
@@ -8,12 +8,10 @@ metric: COCO
pretrain_weights
:
https://paddlemodels.bj.bcebos.com/object_detection/ResNet50_vd_dcn_db_obj365_pretrained.tar
pretrain_weights
:
https://paddlemodels.bj.bcebos.com/object_detection/ResNet50_vd_dcn_db_obj365_pretrained.tar
weights
:
output/yolov3_r50vd_dcn_db_iouloss_obj365_pretrained_coco/model_final
weights
:
output/yolov3_r50vd_dcn_db_iouloss_obj365_pretrained_coco/model_final
num_classes
:
80
num_classes
:
80
use_fine_grained_loss
:
true
YOLOv3
:
YOLOv3
:
backbone
:
ResNet
backbone
:
ResNet
yolo_head
:
YOLOv3Head
yolo_head
:
YOLOv3Head
use_fine_grained_loss
:
true
ResNet
:
ResNet
:
norm_type
:
sync_bn
norm_type
:
sync_bn
...
@@ -49,7 +47,6 @@ YOLOv3Loss:
...
@@ -49,7 +47,6 @@ YOLOv3Loss:
batch_size
:
8
batch_size
:
8
ignore_thresh
:
0.7
ignore_thresh
:
0.7
label_smooth
:
false
label_smooth
:
false
use_fine_grained_loss
:
true
iou_loss
:
IouLoss
iou_loss
:
IouLoss
IouLoss
:
IouLoss
:
...
...
configs/dcn/yolov3_r50vd_dcn_db_obj365_pretrained_coco.yml
浏览文件 @
5e90c3f1
...
@@ -8,12 +8,10 @@ metric: COCO
...
@@ -8,12 +8,10 @@ metric: COCO
pretrain_weights
:
https://paddlemodels.bj.bcebos.com/object_detection/ResNet50_vd_dcn_db_obj365_pretrained.tar
pretrain_weights
:
https://paddlemodels.bj.bcebos.com/object_detection/ResNet50_vd_dcn_db_obj365_pretrained.tar
weights
:
output/yolov3_r50vd_dcn_db_obj365_pretrained_coco/model_final
weights
:
output/yolov3_r50vd_dcn_db_obj365_pretrained_coco/model_final
num_classes
:
80
num_classes
:
80
use_fine_grained_loss
:
true
YOLOv3
:
YOLOv3
:
backbone
:
ResNet
backbone
:
ResNet
yolo_head
:
YOLOv3Head
yolo_head
:
YOLOv3Head
use_fine_grained_loss
:
true
ResNet
:
ResNet
:
norm_type
:
sync_bn
norm_type
:
sync_bn
...
@@ -50,7 +48,6 @@ YOLOv3Loss:
...
@@ -50,7 +48,6 @@ YOLOv3Loss:
batch_size
:
8
batch_size
:
8
ignore_thresh
:
0.7
ignore_thresh
:
0.7
label_smooth
:
false
label_smooth
:
false
use_fine_grained_loss
:
true
LearningRate
:
LearningRate
:
base_lr
:
0.001
base_lr
:
0.001
...
...
configs/dcn/yolov3_r50vd_dcn_obj365_pretrained_coco.yml
浏览文件 @
5e90c3f1
...
@@ -8,12 +8,10 @@ metric: COCO
...
@@ -8,12 +8,10 @@ metric: COCO
pretrain_weights
:
https://paddlemodels.bj.bcebos.com/object_detection/ResNet50_vd_dcn_db_obj365_pretrained.tar
pretrain_weights
:
https://paddlemodels.bj.bcebos.com/object_detection/ResNet50_vd_dcn_db_obj365_pretrained.tar
weights
:
output/yolov3_r50vd_dcn_db_obj365_pretrained_coco/model_final
weights
:
output/yolov3_r50vd_dcn_db_obj365_pretrained_coco/model_final
num_classes
:
80
num_classes
:
80
use_fine_grained_loss
:
true
YOLOv3
:
YOLOv3
:
backbone
:
ResNet
backbone
:
ResNet
yolo_head
:
YOLOv3Head
yolo_head
:
YOLOv3Head
use_fine_grained_loss
:
true
ResNet
:
ResNet
:
norm_type
:
sync_bn
norm_type
:
sync_bn
...
@@ -48,7 +46,6 @@ YOLOv3Loss:
...
@@ -48,7 +46,6 @@ YOLOv3Loss:
batch_size
:
8
batch_size
:
8
ignore_thresh
:
0.7
ignore_thresh
:
0.7
label_smooth
:
false
label_smooth
:
false
use_fine_grained_loss
:
true
LearningRate
:
LearningRate
:
base_lr
:
0.001
base_lr
:
0.001
...
...
configs/ppyolo/ppyolo.yml
浏览文件 @
5e90c3f1
...
@@ -9,14 +9,12 @@ metric: COCO
...
@@ -9,14 +9,12 @@ metric: COCO
pretrain_weights
:
https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_ssld_pretrained.tar
pretrain_weights
:
https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_ssld_pretrained.tar
weights
:
output/ppyolo/model_final
weights
:
output/ppyolo/model_final
num_classes
:
80
num_classes
:
80
use_fine_grained_loss
:
true
use_ema
:
true
use_ema
:
true
ema_decay
:
0.9998
ema_decay
:
0.9998
YOLOv3
:
YOLOv3
:
backbone
:
ResNet
backbone
:
ResNet
yolo_head
:
YOLOv3Head
yolo_head
:
YOLOv3Head
use_fine_grained_loss
:
true
ResNet
:
ResNet
:
norm_type
:
sync_bn
norm_type
:
sync_bn
...
@@ -48,7 +46,6 @@ YOLOv3Loss:
...
@@ -48,7 +46,6 @@ YOLOv3Loss:
ignore_thresh
:
0.7
ignore_thresh
:
0.7
scale_x_y
:
1.05
scale_x_y
:
1.05
label_smooth
:
false
label_smooth
:
false
use_fine_grained_loss
:
true
iou_loss
:
IouLoss
iou_loss
:
IouLoss
iou_aware_loss
:
IouAwareLoss
iou_aware_loss
:
IouAwareLoss
...
...
configs/ppyolo/ppyolo_2x.yml
浏览文件 @
5e90c3f1
...
@@ -9,14 +9,12 @@ metric: COCO
...
@@ -9,14 +9,12 @@ metric: COCO
pretrain_weights
:
https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_ssld_pretrained.tar
pretrain_weights
:
https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_ssld_pretrained.tar
weights
:
output/ppyolo/model_final
weights
:
output/ppyolo/model_final
num_classes
:
80
num_classes
:
80
use_fine_grained_loss
:
true
use_ema
:
true
use_ema
:
true
ema_decay
:
0.9998
ema_decay
:
0.9998
YOLOv3
:
YOLOv3
:
backbone
:
ResNet
backbone
:
ResNet
yolo_head
:
YOLOv3Head
yolo_head
:
YOLOv3Head
use_fine_grained_loss
:
true
ResNet
:
ResNet
:
norm_type
:
sync_bn
norm_type
:
sync_bn
...
@@ -48,7 +46,6 @@ YOLOv3Loss:
...
@@ -48,7 +46,6 @@ YOLOv3Loss:
ignore_thresh
:
0.7
ignore_thresh
:
0.7
scale_x_y
:
1.05
scale_x_y
:
1.05
label_smooth
:
false
label_smooth
:
false
use_fine_grained_loss
:
true
iou_loss
:
IouLoss
iou_loss
:
IouLoss
iou_aware_loss
:
IouAwareLoss
iou_aware_loss
:
IouAwareLoss
...
...
configs/ppyolo/ppyolo_r18vd.yml
浏览文件 @
5e90c3f1
...
@@ -9,14 +9,12 @@ metric: COCO
...
@@ -9,14 +9,12 @@ metric: COCO
pretrain_weights
:
https://paddle-imagenet-models-name.bj.bcebos.com/ResNet18_vd_pretrained.tar
pretrain_weights
:
https://paddle-imagenet-models-name.bj.bcebos.com/ResNet18_vd_pretrained.tar
weights
:
output/ppyolo_tiny/model_final
weights
:
output/ppyolo_tiny/model_final
num_classes
:
80
num_classes
:
80
use_fine_grained_loss
:
true
use_ema
:
true
use_ema
:
true
ema_decay
:
0.9998
ema_decay
:
0.9998
YOLOv3
:
YOLOv3
:
backbone
:
ResNet
backbone
:
ResNet
yolo_head
:
YOLOv3Head
yolo_head
:
YOLOv3Head
use_fine_grained_loss
:
true
ResNet
:
ResNet
:
norm_type
:
sync_bn
norm_type
:
sync_bn
...
@@ -43,7 +41,6 @@ YOLOv3Loss:
...
@@ -43,7 +41,6 @@ YOLOv3Loss:
ignore_thresh
:
0.7
ignore_thresh
:
0.7
scale_x_y
:
1.05
scale_x_y
:
1.05
label_smooth
:
false
label_smooth
:
false
use_fine_grained_loss
:
true
iou_loss
:
IouLoss
iou_loss
:
IouLoss
IouLoss
:
IouLoss
:
...
...
configs/ppyolo/ppyolo_test.yml
浏览文件 @
5e90c3f1
...
@@ -11,7 +11,6 @@ metric: COCO
...
@@ -11,7 +11,6 @@ metric: COCO
pretrain_weights
:
https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_ssld_pretrained.tar
pretrain_weights
:
https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_ssld_pretrained.tar
weights
:
output/ppyolo/model_final
weights
:
output/ppyolo/model_final
num_classes
:
80
num_classes
:
80
use_fine_grained_loss
:
true
use_ema
:
true
use_ema
:
true
ema_decay
:
0.9998
ema_decay
:
0.9998
save_prediction_only
:
True
save_prediction_only
:
True
...
@@ -19,7 +18,6 @@ save_prediction_only: True
...
@@ -19,7 +18,6 @@ save_prediction_only: True
YOLOv3
:
YOLOv3
:
backbone
:
ResNet
backbone
:
ResNet
yolo_head
:
YOLOv3Head
yolo_head
:
YOLOv3Head
use_fine_grained_loss
:
true
ResNet
:
ResNet
:
norm_type
:
sync_bn
norm_type
:
sync_bn
...
...
configs/yolov4/yolov4_cspdarknet.yml
浏览文件 @
5e90c3f1
...
@@ -8,7 +8,6 @@ metric: COCO
...
@@ -8,7 +8,6 @@ metric: COCO
pretrain_weights
:
https://paddlemodels.bj.bcebos.com/object_detection/yolov4_cspdarknet.pdparams
pretrain_weights
:
https://paddlemodels.bj.bcebos.com/object_detection/yolov4_cspdarknet.pdparams
weights
:
output/yolov4_cspdarknet/model_final
weights
:
output/yolov4_cspdarknet/model_final
num_classes
:
80
num_classes
:
80
use_fine_grained_loss
:
true
save_prediction_only
:
True
save_prediction_only
:
True
YOLOv4
:
YOLOv4
:
...
...
configs/yolov4/yolov4_cspdarknet_coco.yml
浏览文件 @
5e90c3f1
...
@@ -8,7 +8,6 @@ metric: COCO
...
@@ -8,7 +8,6 @@ metric: COCO
pretrain_weights
:
https://paddlemodels.bj.bcebos.com/object_detection/CSPDarkNet53_pretrained.pdparams
pretrain_weights
:
https://paddlemodels.bj.bcebos.com/object_detection/CSPDarkNet53_pretrained.pdparams
weights
:
output/yolov4_cspdarknet_coco/model_final
weights
:
output/yolov4_cspdarknet_coco/model_final
num_classes
:
80
num_classes
:
80
use_fine_grained_loss
:
true
YOLOv4
:
YOLOv4
:
backbone
:
CSPDarkNet
backbone
:
CSPDarkNet
...
...
configs/yolov4/yolov4_cspdarknet_voc.yml
浏览文件 @
5e90c3f1
...
@@ -8,7 +8,6 @@ metric: VOC
...
@@ -8,7 +8,6 @@ metric: VOC
pretrain_weights
:
https://paddlemodels.bj.bcebos.com/object_detection/yolov4_cspdarknet.pdparams
pretrain_weights
:
https://paddlemodels.bj.bcebos.com/object_detection/yolov4_cspdarknet.pdparams
weights
:
output/yolov4_cspdarknet_voc/model_final
weights
:
output/yolov4_cspdarknet_voc/model_final
num_classes
:
20
num_classes
:
20
use_fine_grained_loss
:
true
YOLOv4
:
YOLOv4
:
backbone
:
CSPDarkNet
backbone
:
CSPDarkNet
...
...
ppdet/data/reader.py
浏览文件 @
5e90c3f1
...
@@ -199,7 +199,7 @@ class Reader(object):
...
@@ -199,7 +199,7 @@ class Reader(object):
class_aware_sampling
=
False
,
class_aware_sampling
=
False
,
worker_num
=-
1
,
worker_num
=-
1
,
use_process
=
False
,
use_process
=
False
,
use_fine_grained_loss
=
Fals
e
,
use_fine_grained_loss
=
Tru
e
,
num_classes
=
80
,
num_classes
=
80
,
bufsize
=-
1
,
bufsize
=-
1
,
memsize
=
'3G'
,
memsize
=
'3G'
,
...
...
ppdet/modeling/architectures/yolo.py
浏览文件 @
5e90c3f1
...
@@ -43,7 +43,7 @@ class YOLOv3(object):
...
@@ -43,7 +43,7 @@ class YOLOv3(object):
def
__init__
(
self
,
def
__init__
(
self
,
backbone
,
backbone
,
yolo_head
=
'YOLOv3Head'
,
yolo_head
=
'YOLOv3Head'
,
use_fine_grained_loss
=
Fals
e
):
use_fine_grained_loss
=
Tru
e
):
super
(
YOLOv3
,
self
).
__init__
()
super
(
YOLOv3
,
self
).
__init__
()
self
.
backbone
=
backbone
self
.
backbone
=
backbone
self
.
yolo_head
=
yolo_head
self
.
yolo_head
=
yolo_head
...
@@ -182,7 +182,7 @@ class YOLOv4(YOLOv3):
...
@@ -182,7 +182,7 @@ class YOLOv4(YOLOv3):
def
__init__
(
self
,
def
__init__
(
self
,
backbone
,
backbone
,
yolo_head
=
'YOLOv4Head'
,
yolo_head
=
'YOLOv4Head'
,
use_fine_grained_loss
=
Fals
e
):
use_fine_grained_loss
=
Tru
e
):
super
(
YOLOv4
,
self
).
__init__
(
super
(
YOLOv4
,
self
).
__init__
(
backbone
=
backbone
,
backbone
=
backbone
,
yolo_head
=
yolo_head
,
yolo_head
=
yolo_head
,
...
...
ppdet/modeling/losses/yolo_loss.py
浏览文件 @
5e90c3f1
...
@@ -45,7 +45,7 @@ class YOLOv3Loss(object):
...
@@ -45,7 +45,7 @@ class YOLOv3Loss(object):
batch_size
=
8
,
batch_size
=
8
,
ignore_thresh
=
0.7
,
ignore_thresh
=
0.7
,
label_smooth
=
True
,
label_smooth
=
True
,
use_fine_grained_loss
=
Fals
e
,
use_fine_grained_loss
=
Tru
e
,
iou_loss
=
None
,
iou_loss
=
None
,
iou_aware_loss
=
None
,
iou_aware_loss
=
None
,
downsample
=
[
32
,
16
,
8
],
downsample
=
[
32
,
16
,
8
],
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录