Psarpei / Multi-Type-TD-TSR

Extracting Tables from Document Images using a Multi-stage Pipeline for Table Detection and Table Structure Recognition:
MIT License
252 stars 51 forks source link

list index out of range error #9

Open shaktiman101 opened 2 years ago

shaktiman101 commented 2 years ago

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 commented 2 years ago

I have a same problem,could u solve it

NBd-hub commented 2 years ago

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

Davidchenyuhao commented 2 years ago

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