Multi-Type-TD-TSR icon indicating copy to clipboard operation
Multi-Type-TD-TSR copied to clipboard

list index out of range error

Open shaktiman101 opened this issue 2 years ago • 3 comments

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.

shaktiman101 avatar Mar 03 '22 11:03 shaktiman101

I have a same problem,could u solve it

NBd-hub avatar Mar 24 '22 13:03 NBd-hub

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

NBd-hub avatar Mar 25 '22 07:03 NBd-hub

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

Davidchenyuhao avatar Apr 27 '22 19:04 Davidchenyuhao