Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list index out of range error #9

Open
shaktiman101 opened this issue Mar 3, 2022 · 3 comments
Open

list index out of range error #9

shaktiman101 opened this issue Mar 3, 2022 · 3 comments

Comments

@shaktiman101
Copy link

Hi, I was trying to run the model on the below image:
2
in Colab with following command:
!python /content/Multi_Type_TD_TSR/scripts/tsr.py --folder=/content/images --type="partially_color_inv" --img_output=/content/img_output --xml_output=/content/xml_output
But I was getting the below error:
Traceback (most recent call last): File "/content/Multi_Type_TD_TSR/scripts/tsr.py", line 30, in <module> boxes, img_processed = type_dict[args.type].recognize_structure(img) File "/content/Multi_Type_TD_TSR/scripts/TSR/table_structure_recognition_all.py", line 208, in recognize_structure center = [int(row[index][j][0] + row[index][j][2] / 2) for j in range(len(row[index]))] IndexError: list index out of range

Not sure though I have provided the correct value of 'type' flag over here.

@NBd-hub
Copy link

NBd-hub commented Mar 24, 2022

I have a same problem,could u solve it

@NBd-hub
Copy link

NBd-hub commented Mar 25, 2022

sir ,i solved this problem ,that is your wrong 'type'

@Davidchenyuhao
Copy link

i also have the same problem, could u tell me what is the wrong 'type'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants