yolov4-pytorch icon indicating copy to clipboard operation
yolov4-pytorch copied to clipboard

"model_data/CSPdarknet53_backbone_weights.pth"

Open hejunran opened this issue 3 years ago • 7 comments

请问这个文件有嘛

hejunran avatar Feb 26 '22 07:02 hejunran

百度网盘有,但是我加载这个权重会出错,但其他两个不会

initialize network with normal type Load weights model_data/CSPdarknet53_backbone_weights.pth. Traceback (most recent call last): File "train.py", line 153, in pretrained_dict = {k: v for k, v in pretrained_dict.items() if np.shape(model_dict[k]) == np.shape(v)} File "train.py", line 153, in pretrained_dict = {k: v for k, v in pretrained_dict.items() if np.shape(model_dict[k]) == np.shape(v)} KeyError: 'conv1.conv.weight'

infochen avatar Feb 27 '22 03:02 infochen

@infochen 看问题是权值不匹配,看一下动backbone了没有

XuecWu avatar Feb 28 '22 01:02 XuecWu

收到

infochen avatar Feb 28 '22 01:02 infochen

@hejunran release里面有

XuecWu avatar Feb 28 '22 01:02 XuecWu

嗯嗯 ------------------ 原始邮件 ------------------ 发件人: "bubbliiiing/yolov4-pytorch" @.>; 发送时间: 2022年2月27日(星期天) 中午11:41 @.>; @.@.>; 主题: Re: [bubbliiiing/yolov4-pytorch] "model_data/CSPdarknet53_backbone_weights.pth" (Issue #264)

百度网盘有,但是我加载这个权重会出错,但其他两个不会

initialize network with normal type Load weights model_data/CSPdarknet53_backbone_weights.pth. Traceback (most recent call last): File "train.py", line 153, in pretrained_dict = {k: v for k, v in pretrained_dict.items() if np.shape(model_dict[k]) == np.shape(v)} File "train.py", line 153, in pretrained_dict = {k: v for k, v in pretrained_dict.items() if np.shape(model_dict[k]) == np.shape(v)} KeyError: 'conv1.conv.weight'

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

hejunran avatar Mar 03 '22 14:03 hejunran

是pretrain=True调用。

bubbliiiing avatar Mar 05 '22 05:03 bubbliiiing

好的,谢谢up主

------------------ 原始邮件 ------------------ 发件人: "bubbliiiing/yolov4-pytorch" @.>; 发送时间: 2022年3月5日(星期六) 中午1:51 @.>; @.@.>; 主题: Re: [bubbliiiing/yolov4-pytorch] "model_data/CSPdarknet53_backbone_weights.pth" (Issue #264)

是pretrain=True调用。

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>

hejunran avatar Mar 11 '22 10:03 hejunran