Unverified Commit 10c82efb authored by Kai Chen's avatar Kai Chen Committed by GitHub
Browse files

format configs with yapf (#2023)

parent 51bf54a8
...@@ -3,6 +3,6 @@ line_length = 79 ...@@ -3,6 +3,6 @@ line_length = 79
multi_line_output = 0 multi_line_output = 0
known_standard_library = setuptools known_standard_library = setuptools
known_first_party = mmdet known_first_party = mmdet
known_third_party = Cython,albumentations,asynctest,cv2,imagecorruptions,matplotlib,mmcv,numpy,pycocotools,robustness_eval,roi_align,roi_pool,seaborn,six,terminaltables,torch,torchvision known_third_party = Cython,asynctest,cv2,matplotlib,mmcv,numpy,pycocotools,robustness_eval,roi_align,roi_pool,seaborn,six,terminaltables,torch,torchvision
no_lines_before = STDLIB,LOCALFOLDER no_lines_before = STDLIB,LOCALFOLDER
default_section = THIRDPARTY default_section = THIRDPARTY
...@@ -31,7 +31,7 @@ install: ...@@ -31,7 +31,7 @@ install:
before_script: before_script:
- flake8 . - flake8 .
- isort -rc --check-only --diff mmdet/ tools/ tests/ - isort -rc --check-only --diff mmdet/ tools/ tests/
- yapf -r -d --style .style.yapf mmdet/ tools/ tests/ - yapf -r -d --style .style.yapf mmdet/ tools/ tests/ configs/
script: script:
- python setup.py check -m -s - python setup.py check -m -s
......
...@@ -10,8 +10,7 @@ model = dict( ...@@ -10,8 +10,7 @@ model = dict(
out_indices=(0, 1, 2, 3), out_indices=(0, 1, 2, 3),
frozen_stages=1, frozen_stages=1,
style='pytorch', style='pytorch',
dcn=dict( dcn=dict(type='DCN', deformable_groups=1, fallback_on_stride=False),
type='DCN', deformable_groups=1, fallback_on_stride=False),
stage_with_dcn=(False, True, True, True)), stage_with_dcn=(False, True, True, True)),
neck=dict( neck=dict(
type='FPN', type='FPN',
......
...@@ -10,8 +10,7 @@ model = dict( ...@@ -10,8 +10,7 @@ model = dict(
out_indices=(0, 1, 2, 3), out_indices=(0, 1, 2, 3),
frozen_stages=1, frozen_stages=1,
style='pytorch', style='pytorch',
dcn=dict( dcn=dict(type='DCN', deformable_groups=1, fallback_on_stride=False),
type='DCN', deformable_groups=1, fallback_on_stride=False),
stage_with_dcn=(False, True, True, True)), stage_with_dcn=(False, True, True, True)),
neck=dict( neck=dict(
type='FPN', type='FPN',
......
...@@ -9,8 +9,7 @@ model = dict( ...@@ -9,8 +9,7 @@ model = dict(
out_indices=(0, 1, 2, 3), out_indices=(0, 1, 2, 3),
frozen_stages=1, frozen_stages=1,
style='pytorch', style='pytorch',
dcn=dict( dcn=dict(type='DCN', deformable_groups=1, fallback_on_stride=False),
type='DCN', deformable_groups=1, fallback_on_stride=False),
stage_with_dcn=(False, True, True, True)), stage_with_dcn=(False, True, True, True)),
neck=dict( neck=dict(
type='FPN', type='FPN',
......
...@@ -11,10 +11,7 @@ model = dict( ...@@ -11,10 +11,7 @@ model = dict(
out_indices=(0, 1, 2, 3), out_indices=(0, 1, 2, 3),
frozen_stages=1, frozen_stages=1,
style='pytorch', style='pytorch',
dcn=dict( dcn=dict(type='DCN', deformable_groups=1, fallback_on_stride=False),
type='DCN',
deformable_groups=1,
fallback_on_stride=False),
stage_with_dcn=(False, True, True, True)), stage_with_dcn=(False, True, True, True)),
neck=dict( neck=dict(
type='FPN', type='FPN',
......
...@@ -9,8 +9,7 @@ model = dict( ...@@ -9,8 +9,7 @@ model = dict(
out_indices=(0, 1, 2, 3), out_indices=(0, 1, 2, 3),
frozen_stages=1, frozen_stages=1,
style='pytorch', style='pytorch',
dcn=dict( dcn=dict(type='DCNv2', deformable_groups=4, fallback_on_stride=False),
type='DCNv2', deformable_groups=4, fallback_on_stride=False),
stage_with_dcn=(False, True, True, True)), stage_with_dcn=(False, True, True, True)),
neck=dict( neck=dict(
type='FPN', type='FPN',
......
...@@ -9,8 +9,7 @@ model = dict( ...@@ -9,8 +9,7 @@ model = dict(
out_indices=(0, 1, 2, 3), out_indices=(0, 1, 2, 3),
frozen_stages=1, frozen_stages=1,
style='pytorch', style='pytorch',
dcn=dict( dcn=dict(type='DCNv2', deformable_groups=1, fallback_on_stride=False),
type='DCNv2', deformable_groups=1, fallback_on_stride=False),
stage_with_dcn=(False, True, True, True)), stage_with_dcn=(False, True, True, True)),
neck=dict( neck=dict(
type='FPN', type='FPN',
......
...@@ -9,8 +9,7 @@ model = dict( ...@@ -9,8 +9,7 @@ model = dict(
out_indices=(0, 1, 2, 3), out_indices=(0, 1, 2, 3),
frozen_stages=1, frozen_stages=1,
style='pytorch', style='pytorch',
dcn=dict( dcn=dict(type='DCN', deformable_groups=1, fallback_on_stride=False),
type='DCN', deformable_groups=1, fallback_on_stride=False),
stage_with_dcn=(False, True, True, True)), stage_with_dcn=(False, True, True, True)),
neck=dict( neck=dict(
type='FPN', type='FPN',
......
...@@ -12,8 +12,7 @@ model = dict( ...@@ -12,8 +12,7 @@ model = dict(
gen_attention=dict( gen_attention=dict(
spatial_range=-1, num_heads=8, attention_type='0010', kv_stride=2), spatial_range=-1, num_heads=8, attention_type='0010', kv_stride=2),
stage_with_gen_attention=[[], [], [0, 1, 2, 3, 4, 5], [0, 1, 2]], stage_with_gen_attention=[[], [], [0, 1, 2, 3, 4, 5], [0, 1, 2]],
dcn=dict( dcn=dict(type='DCN', deformable_groups=1, fallback_on_stride=False),
type='DCN', deformable_groups=1, fallback_on_stride=False),
stage_with_dcn=(False, True, True, True), stage_with_dcn=(False, True, True, True),
), ),
neck=dict( neck=dict(
......
...@@ -12,8 +12,7 @@ model = dict( ...@@ -12,8 +12,7 @@ model = dict(
gen_attention=dict( gen_attention=dict(
spatial_range=-1, num_heads=8, attention_type='1111', kv_stride=2), spatial_range=-1, num_heads=8, attention_type='1111', kv_stride=2),
stage_with_gen_attention=[[], [], [0, 1, 2, 3, 4, 5], [0, 1, 2]], stage_with_gen_attention=[[], [], [0, 1, 2, 3, 4, 5], [0, 1, 2]],
dcn=dict( dcn=dict(type='DCN', deformable_groups=1, fallback_on_stride=False),
type='DCN', deformable_groups=1, fallback_on_stride=False),
stage_with_dcn=(False, True, True, True), stage_with_dcn=(False, True, True, True),
), ),
neck=dict( neck=dict(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment