allanzelener / YAD2K

YAD2K: Yet Another Darknet 2 Keras
Other
2.71k stars 879 forks source link

MissingSectionHeaderError: File contains no section headers. #161

Open DawnChou opened 5 years ago

DawnChou commented 5 years ago

I have downloaded yolov2.cfg and yolov2.weights from official YOLO, but I am getting this error after inputting ./yad2k.py yolov2.cfg yolov2.weights model_data/yolo.h5

Here is the error:

image

And I open "yolov2.cfg" via default text editor, the content of the file looks like: image ……

What might be wrong? Any help appreciated.

RuobingZhang commented 5 years ago

Same problem! Have you figured it out?

DawnChou commented 5 years ago

Same problem! Have you figured it out?

I created a config file in my linux and copied the content of this .cfg directly instead of using the command "wget" , then it worked. I guess maybe there is something wrong via "wget" from a web page to have a config file and its content will change into something like html?