caffe-yolo icon indicating copy to clipboard operation
caffe-yolo copied to clipboard

create_yolo_prototxt.py, missing arguments

Open mohanadkaleia opened this issue 7 years ago • 2 comments

Okay, I have a problem from the beginning! I downloaded the cgf file from here, https://raw.githubusercontent.com/pjreddie/darknet/master/cfg/yolov1/yolo.cfg

and then I tried with the first command to create prototxt file, like the following: python create_yolo_prototxt.py CFG 'yolo.cfg' -prototxt text.prototxt

But it gives me: error: unrecognized arguments: -prototxt

Okay, I hard coded the needed arguments from the source file to have a quick workaround, but when I run it it gives me a prototxt file with only one line: name: "yolo"

What I've missed though? and why I'm getting such an errors!

The documentation is not very well detailed :(

Thank you,

mohanadkaleia avatar Apr 09 '17 03:04 mohanadkaleia

Okay, I hard coded the name of the CFG file incorrectly :) But still have a problem with the arguments, I worked around it anyway

mohanadkaleia avatar Apr 09 '17 03:04 mohanadkaleia

What is the final command to create the prototxt?

When I tried the command

python create_yolo_prototxt.py yolo.cfg yolo.prototxt

I am getting the error

configparser.DuplicateOptionError: While reading from 'yolo.cfg' [line 38]: option 'batch_normalize' in section 'convolutional' already exists

nikkris avatar Jul 18 '17 16:07 nikkris