Skip to content

Commit 14fc9f0

Browse files
authored
Merge pull request open-mmlab#604 from thangvubk/master
change frozen to requires_grad for clear behavior
2 parents 01e5ec5 + 025149c commit 14fc9f0

16 files changed

+29
-32
lines changed

configs/cascade_mask_rcnn_r50_c4_1x.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
dilations=(1, 1, 1),
1212
out_indices=(2, ),
1313
frozen_stages=1,
14-
normalize=dict(type='BN', frozen=True),
14+
normalize=dict(type='BN', requires_grad=False),
1515
norm_eval=True,
1616
style='caffe'),
1717
shared_head=dict(
@@ -21,7 +21,7 @@
2121
stride=2,
2222
dilation=1,
2323
style='caffe',
24-
normalize=dict(type='BN', frozen=True),
24+
normalize=dict(type='BN', requires_grad=False),
2525
norm_eval=True),
2626
rpn_head=dict(
2727
type='RPNHead',

configs/cascade_rcnn_r50_c4_1x.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
dilations=(1, 1, 1),
1212
out_indices=(2, ),
1313
frozen_stages=1,
14-
normalize=dict(type='BN', frozen=True),
14+
normalize=dict(type='BN', requires_grad=False),
1515
norm_eval=True,
1616
style='caffe'),
1717
shared_head=dict(
@@ -21,7 +21,7 @@
2121
stride=2,
2222
dilation=1,
2323
style='caffe',
24-
normalize=dict(type='BN', frozen=True),
24+
normalize=dict(type='BN', requires_grad=False),
2525
norm_eval=True),
2626
rpn_head=dict(
2727
type='RPNHead',

configs/fast_rcnn_r50_c4_1x.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
dilations=(1, 1, 1),
1111
out_indices=(2, ),
1212
frozen_stages=1,
13-
normalize=dict(type='BN', frozen=True),
13+
normalize=dict(type='BN', requires_grad=False),
1414
norm_eval=True,
1515
style='caffe'),
1616
shared_head=dict(
@@ -20,7 +20,7 @@
2020
stride=2,
2121
dilation=1,
2222
style='caffe',
23-
normalize=dict(type='BN', frozen=True),
23+
normalize=dict(type='BN', requires_grad=False),
2424
norm_eval=True),
2525
bbox_roi_extractor=dict(
2626
type='SingleRoIExtractor',

configs/faster_rcnn_r50_c4_1x.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
dilations=(1, 1, 1),
1111
out_indices=(2, ),
1212
frozen_stages=1,
13-
normalize=dict(type='BN', frozen=True),
13+
normalize=dict(type='BN', requires_grad=False),
1414
norm_eval=True,
1515
style='caffe'),
1616
shared_head=dict(
@@ -20,7 +20,7 @@
2020
stride=2,
2121
dilation=1,
2222
style='caffe',
23-
normalize=dict(type='BN', frozen=True),
23+
normalize=dict(type='BN', requires_grad=False),
2424
norm_eval=True),
2525
rpn_head=dict(
2626
type='RPNHead',

configs/gn+ws/faster_rcnn_r50_fpn_gn_ws_1x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# model settings
22
conv_cfg = dict(type='ConvWS')
3-
normalize = dict(type='GN', num_groups=32, frozen=False)
3+
normalize = dict(type='GN', num_groups=32, requires_grad=True)
44
model = dict(
55
type='FasterRCNN',
66
pretrained='open-mmlab://jhu/resnet50_gn_ws',

configs/gn+ws/mask_rcnn_r50_fpn_gn_ws_20_23_24e.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# model settings
22
conv_cfg = dict(type='ConvWS')
3-
normalize = dict(type='GN', num_groups=32, frozen=False)
3+
normalize = dict(type='GN', num_groups=32, requires_grad=True)
44
model = dict(
55
type='MaskRCNN',
66
pretrained='open-mmlab://jhu/resnet50_gn_ws',

configs/gn+ws/mask_rcnn_r50_fpn_gn_ws_2x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# model settings
22
conv_cfg = dict(type='ConvWS')
3-
normalize = dict(type='GN', num_groups=32, frozen=False)
3+
normalize = dict(type='GN', num_groups=32, requires_grad=True)
44
model = dict(
55
type='MaskRCNN',
66
pretrained='open-mmlab://jhu/resnet50_gn_ws',

configs/gn+ws/mask_rcnn_x101_32x4d_fpn_gn_ws_2x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# model settings
22
conv_cfg = dict(type='ConvWS')
3-
normalize = dict(type='GN', num_groups=32, frozen=False)
3+
normalize = dict(type='GN', num_groups=32, requires_grad=True)
44
model = dict(
55
type='MaskRCNN',
66
pretrained='open-mmlab://jhu/resnext101_32x4d_gn_ws',

configs/gn/mask_rcnn_r101_fpn_gn_2x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# model settings
2-
normalize = dict(type='GN', num_groups=32, frozen=False)
2+
normalize = dict(type='GN', num_groups=32, requires_grad=True)
33

44
model = dict(
55
type='MaskRCNN',

configs/gn/mask_rcnn_r50_fpn_gn_2x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# model settings
2-
normalize = dict(type='GN', num_groups=32, frozen=False)
2+
normalize = dict(type='GN', num_groups=32, requires_grad=True)
33

44
model = dict(
55
type='MaskRCNN',

0 commit comments

Comments
 (0)