bigdetection icon indicating copy to clipboard operation
bigdetection copied to clipboard

Config for Cascade R-CNN

Open dzhurak opened this issue 2 years ago • 2 comments

Hello, the config for Cascade R-CNN is missing. I tried to use the one from Detectron2 without the mask head but got the following error

        Missing key(s) in state_dict: "backbone.fpn_lateral2.weight", "backbone.fpn_lateral2.bias", "backbone.fpn_output2.weight", "backbone.fpn_output2.bias".
        Unexpected key(s) in state_dict: "backbone.top_block.p6.weight", "backbone.top_block.p6.bias", "backbone.top_block.p7.weight", "backbone.top_block.p7.bias".
        size mismatch for proposal_generator.rpn_head.objectness_logits.weight: copying a param with shape torch.Size([9, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([3, 256, 1, 1]).
        size mismatch for proposal_generator.rpn_head.objectness_logits.bias: copying a param with shape torch.Size([9]) from checkpoint, the shape in current model is torch.Size([3]).
        size mismatch for proposal_generator.rpn_head.anchor_deltas.weight: copying a param with shape torch.Size([36, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([12, 256, 1, 1]).
        size mismatch for proposal_generator.rpn_head.anchor_deltas.bias: copying a param with shape torch.Size([36]) from checkpoint, the shape in current model is torch.Size([12])

dzhurak avatar Apr 19 '22 07:04 dzhurak

@cailk any thought?

bryanyzhu avatar Apr 26 '22 04:04 bryanyzhu

Hello, the config for Cascade R-CNN is missing. I tried to use the one from Detectron2 without the mask head but got the following error

        Missing key(s) in state_dict: "backbone.fpn_lateral2.weight", "backbone.fpn_lateral2.bias", "backbone.fpn_output2.weight", "backbone.fpn_output2.bias".
        Unexpected key(s) in state_dict: "backbone.top_block.p6.weight", "backbone.top_block.p6.bias", "backbone.top_block.p7.weight", "backbone.top_block.p7.bias".
        size mismatch for proposal_generator.rpn_head.objectness_logits.weight: copying a param with shape torch.Size([9, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([3, 256, 1, 1]).
        size mismatch for proposal_generator.rpn_head.objectness_logits.bias: copying a param with shape torch.Size([9]) from checkpoint, the shape in current model is torch.Size([3]).
        size mismatch for proposal_generator.rpn_head.anchor_deltas.weight: copying a param with shape torch.Size([36, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([12, 256, 1, 1]).
        size mismatch for proposal_generator.rpn_head.anchor_deltas.bias: copying a param with shape torch.Size([36]) from checkpoint, the shape in current model is torch.Size([12])

Hi, sorry for the late reply. We just updated the configurations for detectron2-based models. To better reproduce these results, I suggest you use the project of CenterNet2 as we are also running upon this codebase~

cailk avatar Apr 28 '22 17:04 cailk