Skip to content

Commit 62d6c65

Browse files
authored
format configs with yapf (open-mmlab#2023)
1 parent d22e2c6 commit 62d6c65

11 files changed

+11
-22
lines changed

.isort.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ line_length = 79
33
multi_line_output = 0
44
known_standard_library = setuptools
55
known_first_party = mmdet
6-
known_third_party = Cython,albumentations,asynctest,cv2,imagecorruptions,matplotlib,mmcv,numpy,pycocotools,robustness_eval,roi_align,roi_pool,seaborn,six,terminaltables,torch,torchvision
6+
known_third_party = Cython,asynctest,cv2,matplotlib,mmcv,numpy,pycocotools,robustness_eval,roi_align,roi_pool,seaborn,six,terminaltables,torch,torchvision
77
no_lines_before = STDLIB,LOCALFOLDER
88
default_section = THIRDPARTY

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ install:
3131
before_script:
3232
- flake8 .
3333
- isort -rc --check-only --diff mmdet/ tools/ tests/
34-
- yapf -r -d --style .style.yapf mmdet/ tools/ tests/
34+
- yapf -r -d --style .style.yapf mmdet/ tools/ tests/ configs/
3535

3636
script:
3737
- python setup.py check -m -s

configs/dcn/cascade_mask_rcnn_dconv_c3-c5_r50_fpn_1x.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
out_indices=(0, 1, 2, 3),
1111
frozen_stages=1,
1212
style='pytorch',
13-
dcn=dict(
14-
type='DCN', deformable_groups=1, fallback_on_stride=False),
13+
dcn=dict(type='DCN', deformable_groups=1, fallback_on_stride=False),
1514
stage_with_dcn=(False, True, True, True)),
1615
neck=dict(
1716
type='FPN',

configs/dcn/cascade_rcnn_dconv_c3-c5_r50_fpn_1x.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
out_indices=(0, 1, 2, 3),
1111
frozen_stages=1,
1212
style='pytorch',
13-
dcn=dict(
14-
type='DCN', deformable_groups=1, fallback_on_stride=False),
13+
dcn=dict(type='DCN', deformable_groups=1, fallback_on_stride=False),
1514
stage_with_dcn=(False, True, True, True)),
1615
neck=dict(
1716
type='FPN',

configs/dcn/faster_rcnn_dconv_c3-c5_r50_fpn_1x.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
out_indices=(0, 1, 2, 3),
1010
frozen_stages=1,
1111
style='pytorch',
12-
dcn=dict(
13-
type='DCN', deformable_groups=1, fallback_on_stride=False),
12+
dcn=dict(type='DCN', deformable_groups=1, fallback_on_stride=False),
1413
stage_with_dcn=(False, True, True, True)),
1514
neck=dict(
1615
type='FPN',

configs/dcn/faster_rcnn_dconv_c3-c5_x101_32x4d_fpn_1x.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
out_indices=(0, 1, 2, 3),
1212
frozen_stages=1,
1313
style='pytorch',
14-
dcn=dict(
15-
type='DCN',
16-
deformable_groups=1,
17-
fallback_on_stride=False),
14+
dcn=dict(type='DCN', deformable_groups=1, fallback_on_stride=False),
1815
stage_with_dcn=(False, True, True, True)),
1916
neck=dict(
2017
type='FPN',

configs/dcn/faster_rcnn_mdconv_c3-c5_group4_r50_fpn_1x.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
out_indices=(0, 1, 2, 3),
1010
frozen_stages=1,
1111
style='pytorch',
12-
dcn=dict(
13-
type='DCNv2', deformable_groups=4, fallback_on_stride=False),
12+
dcn=dict(type='DCNv2', deformable_groups=4, fallback_on_stride=False),
1413
stage_with_dcn=(False, True, True, True)),
1514
neck=dict(
1615
type='FPN',

configs/dcn/faster_rcnn_mdconv_c3-c5_r50_fpn_1x.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
out_indices=(0, 1, 2, 3),
1010
frozen_stages=1,
1111
style='pytorch',
12-
dcn=dict(
13-
type='DCNv2', deformable_groups=1, fallback_on_stride=False),
12+
dcn=dict(type='DCNv2', deformable_groups=1, fallback_on_stride=False),
1413
stage_with_dcn=(False, True, True, True)),
1514
neck=dict(
1615
type='FPN',

configs/dcn/mask_rcnn_dconv_c3-c5_r50_fpn_1x.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
out_indices=(0, 1, 2, 3),
1010
frozen_stages=1,
1111
style='pytorch',
12-
dcn=dict(
13-
type='DCN', deformable_groups=1, fallback_on_stride=False),
12+
dcn=dict(type='DCN', deformable_groups=1, fallback_on_stride=False),
1413
stage_with_dcn=(False, True, True, True)),
1514
neck=dict(
1615
type='FPN',

configs/empirical_attention/faster_rcnn_r50_fpn_attention_0010_dcn_1x.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
gen_attention=dict(
1313
spatial_range=-1, num_heads=8, attention_type='0010', kv_stride=2),
1414
stage_with_gen_attention=[[], [], [0, 1, 2, 3, 4, 5], [0, 1, 2]],
15-
dcn=dict(
16-
type='DCN', deformable_groups=1, fallback_on_stride=False),
15+
dcn=dict(type='DCN', deformable_groups=1, fallback_on_stride=False),
1716
stage_with_dcn=(False, True, True, True),
1817
),
1918
neck=dict(

0 commit comments

Comments
 (0)