我首先修改了init_cfg中的内容init_cfg=dict(type='Pretrained', checkpoint='/root/mmdetection/checkpoints/my_pretrained.pth')),后来又修改load_from参数加载指定目录下的权重,都显示
2023/10/27 06:43:57 - mmengine - WARNING - The model and loaded state dict do not match exactly,
unexpected key in source state_dict....,
missing keys in source state_dict......,
Name of parameter - Initialization information
backbone.conv1.weight - torch.Size([64, 3, 7, 7]):
The value is the same before and after calling init_weights of RetinaNet
backbone.bn1.weight - torch.Size([64]):
The value is the same before and after calling init_weights of RetinaNet
backbone.bn1.bias - torch.Size([64]):
The value is the same before and after calling init_weights of RetinaNet
backbone.layer1.0.conv1.weight - torch.Size([64, 64, 1, 1]):
The value is the same before and after calling init_weights of RetinaNet
我首先修改了init_cfg中的内容init_cfg=dict(type='Pretrained', checkpoint='/root/mmdetection/checkpoints/my_pretrained.pth')),后来又修改load_from参数加载指定目录下的权重,都显示 2023/10/27 06:43:57 - mmengine - WARNING - The model and loaded state dict do not match exactly, unexpected key in source state_dict....,
missing keys in source state_dict......,
Name of parameter - Initialization information
backbone.conv1.weight - torch.Size([64, 3, 7, 7]): The value is the same before and after calling
init_weights
of RetinaNetbackbone.bn1.weight - torch.Size([64]): The value is the same before and after calling
init_weights
of RetinaNetbackbone.bn1.bias - torch.Size([64]): The value is the same before and after calling
init_weights
of RetinaNetbackbone.layer1.0.conv1.weight - torch.Size([64, 64, 1, 1]): The value is the same before and after calling
init_weights
of RetinaNet