yolov7_d2 icon indicating copy to clipboard operation
yolov7_d2 copied to clipboard

unable to load DarkNet53 backbone for yolov7

Open GrassBro opened this issue 2 years ago • 0 comments

Hi, @jinfagang

According to darknet53.yaml, I downloaded yolov3.pt as the backbone for initializing the yolov7.

However, I met the following problem, do you have any suggestions to provide accurate parameters for yolov7?

RuntimeError: Error(s) in loading state_dict for Darknet: Missing key(s) in state_dict: "stem.conv.weight", "stem.bn.weight", "stem.bn.bias", "stem.bn.running_mean", "stem.bn.running_var", "dark1.0.conv.weight", "dark1.0.bn.weight", "dark1.0.bn.bias", "dark1.0.bn.running_mean", "dark1.0.bn.running_var", "dark1.1.layer1.conv.weight", "dark1.1.layer1.bn.weight", "dark1.1.layer1.bn.bias", "dark1.1.layer1.bn.running_mean", "dark1.1.layer1.bn.running_var", "dark1.1.layer2.conv.weight", "dark1.1.layer2.bn.weight", ....... .......

GrassBro avatar Nov 13 '22 11:11 GrassBro