d0fb2a8d63de0c59a11163650b9575bbc916df5e,mmdet/models/detectors/two_stage.py,TwoStageDetector,init_weights,#TwoStageDetector#Any#,53
Before Change
self.init_weights(pretrained=pretrained)
def init_weights(self, pretrained=None):
if pretrained is not None:
print("load model from: {}".format(pretrained))
self.backbone.init_weights(pretrained=pretrained)
if self.with_neck:
if isinstance(self.neck, nn.Sequential):
for m in self.neck:
After Change
self.init_weights(pretrained=pretrained)
def init_weights(self, pretrained=None):
super(TwoStageDetector, self).init_weights(pretrained)
self.backbone.init_weights(pretrained=pretrained)
if self.with_neck:
if isinstance(self.neck, nn.Sequential):
for m in self.neck:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: open-mmlab/mmdetection
Commit Name: d0fb2a8d63de0c59a11163650b9575bbc916df5e
Time: 2018-09-26
Author: chenkaidev@gmail.com
File Name: mmdet/models/detectors/two_stage.py
Class Name: TwoStageDetector
Method Name: init_weights
Project Name: xinntao/BasicSR
Commit Name: 9de5104fefa8661613642f5bfd3c89a4470e37ca
Time: 2018-06-14
Author: wxt1994@126.com
File Name: codes/models/networks.py
Class Name:
Method Name: define_D
Project Name: open-mmlab/mmdetection
Commit Name: d0fb2a8d63de0c59a11163650b9575bbc916df5e
Time: 2018-09-26
Author: chenkaidev@gmail.com
File Name: mmdet/models/detectors/rpn.py
Class Name: RPN
Method Name: init_weights