matthewearl / deep-anpr

Using neural networks to build an automatic number plate recognition system
MIT License
1.84k stars 697 forks source link

Train problem #65

Open MansourTrabelsi opened 7 years ago

MansourTrabelsi commented 7 years ago

Traceback (most recent call last): File "train.py", line 258, in <module> initial_weights=initial_weights) File "train.py", line 224, in train test_xs, test_ys = unzip(list(read_data("test/*.png"))[:50]) File "train.py", line 65, in read_data code = fname.split("/")[1][9:16] IndexError: list index out of range

How to fix this problem ?

sauman07 commented 6 years ago

Any solution? Facing same issue.

annalenastern commented 6 years ago

if you are running it on windows theres no / in the path, so use fname.split("\")[1][9:16]. works for me

cayman1021 commented 6 years ago

Fixed this problem too by replacing the split character from "/" to "\" (if you're in Windows).