allanzelener / YAD2K

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

./yad2k.py invalid syntax #142

Open job2003 opened 6 years ago

job2003 commented 6 years ago

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!

EmericW commented 6 years ago

Using python3 fixed this for me.

Note: you will need to reinstall the dependencies using pip3

mainguyenanhvu commented 5 years ago

image

I used python3 but it had error. Please help me.