def detectron_weight_mapping(self): detectron_weight_mapping, orphan_in_detectron = \ ResNet.residual_stage_detectron_mapping(self.res5, 'res5', 3, 5) detectron_weight_mapping.update({ 'upconv5.weight': 'conv5_mask_w', 'upconv5.bias': 'conv5_mask_b' }) return detectron_weight_mapping, orphan_in_detectron
def detectron_weight_mapping(self): detectron_weight_mapping, orphan_in_detectron = \ ResNet.residual_stage_detectron_mapping(self.res5, 'res5', 3, 5) detectron_weight_mapping.update({ 'upconv5.weight': 'conv5_mask_w', 'upconv5.bias': 'conv5_mask_b' }) return detectron_weight_mapping, orphan_in_detectron
def detectron_weight_mapping(self): detectron_weight_mapping, orphan_in_detectron = \ ResNet.residual_stage_detectron_mapping(self.res5, 'res5', 3, 5) # Assign None for res5 modules, do not load from or save to checkpoint for k in detectron_weight_mapping: detectron_weight_mapping[k] = None detectron_weight_mapping.update({ 'upconv5.weight': 'conv5_mask_w', 'upconv5.bias': 'conv5_mask_b' }) return detectron_weight_mapping, orphan_in_detectron
def detectron_weight_mapping(self): detectron_weight_mapping, orphan_in_detectron = \ ResNet.residual_stage_detectron_mapping(self.res5, 'res5', 3, 5) # Assign None for res5 modules, do not load from or save to checkpoint for k in detectron_weight_mapping: detectron_weight_mapping[k] = None detectron_weight_mapping.update({ 'upconv5.weight': 'conv5_mask_w', 'upconv5.bias': 'conv5_mask_b' }) return detectron_weight_mapping, orphan_in_detectron