deep-anpr icon indicating copy to clipboard operation
deep-anpr copied to clipboard

train.py problem occure!!!help.help.help!!!

Open Mr-Yellow opened this issue 7 years ago • 3 comments

Traceback (most recent call last): File "train.py", line 293, in initial_weights=initial_weights) File "train.py", line 266, in train do_batch() File "train.py", line 251, in do_batch do_report() File "train.py", line 236, in do_report print ("B{:3d} {:2.02f}% {:02.02f}% loss: {} " AttributeError: 'NoneType' object has no attribute 'format'

Mr-Yellow avatar Oct 22 '17 00:10 Mr-Yellow

Any solution?

sauman07 avatar Dec 02 '17 21:12 sauman07

Show me your code after line 236, things that put .format

chingjunehao avatar Jan 09 '18 11:01 chingjunehao

I ran into a similar issue - my brackets were wrong around the print statement. I made the adjustment because I went from python 2.7 to 3.x

IamSierraCharlie avatar Jan 23 '18 12:01 IamSierraCharlie