naiveHobo / InvoiceNet

Deep neural network to extract intelligent information from invoice documents.
MIT License
2.42k stars 386 forks source link

IndexError: list index out of range #104

Open haochile01 opened 2 years ago

haochile01 commented 2 years ago

Exception in Tkinter callback Traceback (most recent call last): File "/Users/haochile/opt/miniconda3/envs/invoicenet/lib/python3.8/tkinter/init.py", line 1892, in call return self.func(*args) File "/Users/haochile/Documents/pythonProject1/InvoiceNet/invoicenet/gui/trainer.py", line 393, in _prepare_data ngrams = util.create_ngrams(page, height=height, width=width) File "/Users/haochile/Documents/pythonProject1/InvoiceNet/invoicenet/common/util.py", line 195, in create_ngrams lines = divide_into_lines(words, height=img.size[1], width=img.size[0]) File "/Users/haochile/Documents/pythonProject1/InvoiceNet/invoicenet/common/util.py", line 172, in divide_into_lines cur = words[1] IndexError: list index out of range

I am so grateful that you @naiveHobo created this project. I'm really excited and interested in it. If successful (I mean I can run it) it will help my work so much. I'm getting this error now, can anyone help me fix it? Thank you

haochile01 commented 2 years ago

I'm still fixing it, but it's nohope

gempain commented 1 year ago

Related to #15