jinyu121 / DW2TF

Darknet Weights to TensorFlow
GNU General Public License v3.0
219 stars 73 forks source link

DW2TF/util/reader.py fails when it runs out of lines #55

Open crsumiran opened 4 years ago

crsumiran commented 4 years ago

The application fails when it runs out of lines inside the cfg file. I have added the following lines fix it.

try: line = next(line_getter) except: return

ROBYER1 commented 3 years ago

The application fails when it runs out of lines inside the cfg file. I have added the following lines fix it.

try: line = next(line_getter) except: return

Why did you suggest those lines when they don't work?

File "/mnt/g/Git_General/Darknet2TensorFlow/util/reader.py", line 86 except: ^ SyntaxError: invalid syntax