Skip to content

Commit

Permalink
Rewrite dataset evaluation (#2042)
Browse files Browse the repository at this point in the history
* move evaluation part to datasets

* use dataset.evaluate() in testing scripts

* remove redundant codes

* fix some log formats

* update config with evaludation

* move evaluation below dataset

* remove coco_utils.py and fix test_robustness

Co-authored-by: Jerry Jiarui XU <xvjiarui0826@gmail.com>
  • Loading branch information
hellock and xvjiarui authored Feb 11, 2020
1 parent 6acee79 commit 1d7b0a7
Show file tree
Hide file tree
Showing 154 changed files with 663 additions and 534 deletions.
2 changes: 1 addition & 1 deletion configs/albu_example/mask_rcnn_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric=['bbox', 'segm'])
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand All @@ -237,7 +238,6 @@
# dict(type='TensorboardLoggerHook')
])
# yapf:enable
evaluation = dict(interval=1)
# runtime settings
total_epochs = 12
dist_params = dict(backend='nccl')
Expand Down
1 change: 1 addition & 0 deletions configs/atss/atss_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/cascade_mask_rcnn_r101_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric=['bbox', 'segm'])
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/cascade_mask_rcnn_r50_caffe_c4_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric=['bbox', 'segm'])
# optimizer
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/cascade_mask_rcnn_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric=['bbox', 'segm'])
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/cascade_mask_rcnn_x101_32x4d_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric=['bbox', 'segm'])
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/cascade_mask_rcnn_x101_64x4d_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric=['bbox', 'segm'])
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/cascade_rcnn_r101_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/cascade_rcnn_r50_caffe_c4_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/cascade_rcnn_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/cascade_rcnn_x101_32x4d_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/cascade_rcnn_x101_64x4d_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/cityscapes/faster_rcnn_r50_fpn_1x_cityscapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
'annotations/instancesonly_filtered_gtFine_val.json',
img_prefix=data_root + 'val/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
# lr is set for a batch size of 8
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
Expand Down
1 change: 1 addition & 0 deletions configs/cityscapes/mask_rcnn_r50_fpn_1x_cityscapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
'annotations/instancesonly_filtered_gtFine_val.json',
img_prefix=data_root + 'val/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric=['bbox', 'segm'])
# optimizer
# lr is set for a batch size of 8
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
Expand Down
1 change: 1 addition & 0 deletions configs/dcn/cascade_mask_rcnn_dconv_c3-c5_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric=['bbox', 'segm'])
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/dcn/cascade_rcnn_dconv_c3-c5_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/dcn/faster_rcnn_dconv_c3-c5_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/dcn/faster_rcnn_dconv_c3-c5_x101_32x4d_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/dcn/faster_rcnn_dpool_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/dcn/faster_rcnn_mdconv_c3-c5_group4_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/dcn/faster_rcnn_mdconv_c3-c5_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/dcn/faster_rcnn_mdpool_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/dcn/mask_rcnn_dconv_c3-c5_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric=['bbox', 'segm'])
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/dcn/mask_rcnn_mdconv_c3-c5_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric=['bbox', 'segm'])
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/double_heads/dh_faster_rcnn_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/fast_mask_rcnn_r101_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
proposal_file=data_root + 'proposals/rpn_r50_fpn_1x_val2017.pkl',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric=['bbox', 'segm'])
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/fast_mask_rcnn_r50_caffe_c4_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
proposal_file=data_root + 'proposals/rpn_r50_c4_1x_val2017.pkl',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric=['bbox', 'segm'])
# optimizer
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/fast_mask_rcnn_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
proposal_file=data_root + 'proposals/rpn_r50_fpn_1x_val2017.pkl',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric=['bbox', 'segm'])
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/fast_rcnn_r101_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
proposal_file=data_root + 'proposals/rpn_r50_fpn_1x_val2017.pkl',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/fast_rcnn_r50_caffe_c4_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
proposal_file=data_root + 'proposals/rpn_r50_c4_1x_val2017.pkl',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/fast_rcnn_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
proposal_file=data_root + 'proposals/rpn_r50_fpn_1x_val2017.pkl',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/faster_rcnn_ohem_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/faster_rcnn_r101_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/faster_rcnn_r50_caffe_c4_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/faster_rcnn_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/faster_rcnn_x101_32x4d_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/faster_rcnn_x101_64x4d_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(
type='SGD',
Expand Down
1 change: 1 addition & 0 deletions configs/fcos/fcos_mstrain_640_800_x101_64x4d_fpn_gn_2x.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(
type='SGD',
Expand Down
1 change: 1 addition & 0 deletions configs/fcos/fcos_r50_caffe_fpn_gn_1x_4gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(
type='SGD',
Expand Down
1 change: 1 addition & 0 deletions configs/foveabox/fovea_align_gn_ms_r101_fpn_4gpu_2x.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/foveabox/fovea_align_gn_ms_r50_fpn_4gpu_2x.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/foveabox/fovea_align_gn_r101_fpn_4gpu_2x.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/foveabox/fovea_align_gn_r50_fpn_4gpu_2x.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
1 change: 1 addition & 0 deletions configs/foveabox/fovea_r50_fpn_4gpu_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
ann_file=data_root + 'annotations/instances_val2017.json',
img_prefix=data_root + 'val2017/',
pipeline=test_pipeline))
evaluation = dict(interval=1, metric='bbox')
# optimizer
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
Expand Down
Loading

0 comments on commit 1d7b0a7

Please sign in to comment.