Closed bestrobotplans closed 7 months ago
This is because we are using ResNetv2. Here is the link to download the weights: https://drive.google.com/file/d/1w5pRmLJXvmQQA5PtCbHhZc_uC4o0YbmA/view
This is because we are using ResNetv2. Here is the link to download the weights: https://drive.google.com/file/d/1w5pRmLJXvmQQA5PtCbHhZc_uC4o0YbmA/view
I do think u should change the code for clarification~
I have a question regarding the code. In resnet.py starting around line 318, the code says:
This fails because I have nothing at root/paddlejob/workspace/env_run/vrp_sam/resnet50_v2.pth.
So I try to change it to:
But now I get the following error:
RuntimeError: Error(s) in loading state_dict for ResNet: Missing key(s) in state_dict: "conv2.weight", "bn2.weight", "bn2.bias", "bn2.running_mean", "bn2.running_var", "conv3.weight", "bn3.weight", "bn3.bias", "bn3.running_mean", "bn3.running_var". size mismatch for conv1.weight: copying a param with shape torch.Size([64, 3, 7, 7]) from checkpoint, the shape in current model is torch.Size([64, 3, 3, 3]). size mismatch for layer1.0.conv1.weight: copying a param with shape torch.Size([64, 64, 1, 1]) from checkpoint, the shape in current model is torch.Size([64, 128, 1, 1]). size mismatch for layer1.0.downsample.0.weight: copying a param with shape torch.Size([256, 64, 1, 1]) from checkpoint, the shape in current model is torch.Size([256, 128, 1, 1]).
Could you provide help on how to get a ResNet model working here?