allanzelener / YAD2K

YAD2K: Yet Another Darknet 2 Keras
Other
2.72k stars 880 forks source link

problem with yad2k.py #58

Closed thealchemist-x closed 7 years ago

thealchemist-x commented 7 years ago

Hi all,

I'm trying to set up and run the weight conversion script from darknet to keras. I am getting a problem when I run the following command:

./yad2k.py -- help

File "./yad2k.py", line 241 print(cfg_parser[section]['anchors'], file=f)

SyntaxError: invalid syntax

There's also ^ sign pointing to "file=f" in the error message. How can I resolve this?

Thank you!

thealchemist-x commented 7 years ago

I'm guessing it could be python3 issue, thanks all! I'll close this issue. Thank you all for the help :)