SpursLipu / YOLOv3v4-ModelCompression-MultidatasetTraining-Multibackbone

YOLO ModelCompression MultidatasetTraining
GNU General Public License v3.0
445 stars 136 forks source link

训练除yolov3外的cfg文件时,出现AssertionError,加载预训练模型失败 #115

Open 1246886181 opened 3 years ago

1246886181 commented 3 years ago

Model Summary: 45 layers, 9.02466e+06 parameters, 9.02466e+06 gradients Optimizer groups: 16 .bias, 16 Conv2d.weight, 13 other Traceback (most recent call last): File "train.py", line 632, in train(hyp) # train normally File "train.py", line 172, in train load_darknet_weights(model, weights, pt=opt.pt, FPGA=opt.FPGA) File "/home/dell/tongyu/YOLOv3v4-ModelCompression-MultidatasetTraining-Multibackbone-master/models.py", line 813, in load_darknet_weights assert ptr == len(weights) AssertionError

aHodor-z commented 3 years ago

请问你这个问题解决了吗?

1246886181 commented 3 years ago

可以直接不加载模型

---原始邮件--- 发件人: @.> 发送时间: 2021年4月14日(周三) 晚上6:32 收件人: @.>; 抄送: @.**@.>; 主题: Re: [SpursLipu/YOLOv3v4-ModelCompression-MultidatasetTraining-Multibackbone] 训练除yolov3外的cfg文件时,出现AssertionError,加载预训练模型失败 (#115)

请问你这个问题解决了吗?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

aHodor-z commented 3 years ago

请问要如何操作呢??我还是个小白。。。