b34a8432db33eb70c062ec0c33446e1bb4931e24,mmdet/models/backbones/ssd_vgg.py,SSDVGG,init_weights,#SSDVGG#Any#,76

Before Change



    def init_weights(self, pretrained=None):
        if isinstance(pretrained, str):
            logger = logging.getLogger()
            load_checkpoint(self, pretrained, strict=False, logger=logger)
        elif pretrained is None:
            for m in self.features.modules():
                if isinstance(m, nn.Conv2d):

After Change


    def init_weights(self, pretrained=None):
        if isinstance(pretrained, str):
            from mmdet.apis import get_root_logger
            logger = get_root_logger()
            load_checkpoint(self, pretrained, strict=False, logger=logger)
        elif pretrained is None:
            for m in self.features.modules():
                if isinstance(m, nn.Conv2d):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: open-mmlab/mmdetection
Commit Name: b34a8432db33eb70c062ec0c33446e1bb4931e24
Time: 2019-12-24
Author: chenkaidev@gmail.com
File Name: mmdet/models/backbones/ssd_vgg.py
Class Name: SSDVGG
Method Name: init_weights


Project Name: open-mmlab/mmdetection
Commit Name: b34a8432db33eb70c062ec0c33446e1bb4931e24
Time: 2019-12-24
Author: chenkaidev@gmail.com
File Name: mmdet/models/detectors/base.py
Class Name: BaseDetector
Method Name: init_weights


Project Name: open-mmlab/mmdetection
Commit Name: b34a8432db33eb70c062ec0c33446e1bb4931e24
Time: 2019-12-24
Author: chenkaidev@gmail.com
File Name: mmdet/models/shared_heads/res_layer.py
Class Name: ResLayer
Method Name: init_weights


Project Name: open-mmlab/mmdetection
Commit Name: b34a8432db33eb70c062ec0c33446e1bb4931e24
Time: 2019-12-24
Author: chenkaidev@gmail.com
File Name: mmdet/models/backbones/hrnet.py
Class Name: HRNet
Method Name: init_weights


Project Name: open-mmlab/mmdetection
Commit Name: b34a8432db33eb70c062ec0c33446e1bb4931e24
Time: 2019-12-24
Author: chenkaidev@gmail.com
File Name: mmdet/models/backbones/resnet.py
Class Name: ResNet
Method Name: init_weights