githubharald / SimpleHTR

Handwritten Text Recognition (HTR) system implemented with TensorFlow.

Home Page:https://towardsdatascience.com/2326a3487cd5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blank line filter in dataloader doesn't quite work

adam-funk opened this issue · comments

I assume line 44 in dataloader_iam.py is supposed to ignore blank lines as well as those starting with # but it doesn't work because lines read from the open file include the newline at the end. I think if not line or line[0] == '#' should be changed to if not line.strip() or line[0] == '#':.

I think it was just intended to be used for comment lines, not for empty lines. But ignoring empty lines too makes sense, will add it.