pytorch-yolo-v3
pytorch-yolo-v3 copied to clipboard
How to load pre-trained model
Hi, I do like your code which help me understand the YOLO framework. But it is regretful that there are no training process. Now I'm trying to write the training codes by myself but I don't know how to load the pre-trained model given by the official YOLO authors darknet53.conv.74. I tried straightly use the load_weights() method of Darknet but failed. The error reports as RuntimeEroor: the given numpy array has zero-sized dimensions. Zero-sized dimensions are not supported in Pytorch. I guess this error happens when loading step encounter BN layer. Can you help me with this? Thanks.
Well, I find that deleting the codes here and replacing with continue do work. But I'm not sure if it is the right way.
I'll try to solve your issue when I'll start working on the training code, which is soon. Sorry for the late reply. Been very busy this month.
https://github.com/YunYang1994/tensorflow-yolov3