From 2cdc7545d05aa275a622f796181b64e2823d0b9e Mon Sep 17 00:00:00 2001 From: pangjm Date: Sun, 17 Feb 2019 21:23:54 +0800 Subject: [PATCH] fix dcn in BasicBlock --- mmdet/models/backbones/resnet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mmdet/models/backbones/resnet.py b/mmdet/models/backbones/resnet.py index 47cccfc..d249716 100644 --- a/mmdet/models/backbones/resnet.py +++ b/mmdet/models/backbones/resnet.py @@ -34,8 +34,10 @@ def __init__(self, downsample=None, style='pytorch', with_cp=False, - normalize=dict(type='BN')): + normalize=dict(type='BN'), + dcn=None): super(BasicBlock, self).__init__() + assert dcn is None, "Not implemented yet." self.norm1_name, norm1 = build_norm_layer(normalize, planes, postfix=1) self.norm2_name, norm2 = build_norm_layer(normalize, planes, postfix=2)