DevashishPrasad / CascadeTabNet

This repository contains the code and implementation details of the CascadeTabNet paper "CascadeTabNet: An approach for end to end table detection and structure recognition from image-based documents"
MIT License
1.46k stars 422 forks source link

TypeError: CascadeRCNN: __init__() got an unexpected keyword argument 'num_stages' #150

Open meet1919 opened 2 years ago

meet1919 commented 2 years ago

Can't get rid of this error. It seems like error comes from the model while loading the model

ankitmantri commented 2 years ago

config_file = './Config/cascade_mask_rcnn_hrnetv2p_w32_20e_v2.py'

Use v2 for your config file

meet1919 commented 2 years ago

I did it but than again another error comes AttributeError: 'str' object has no attribute 'show_result'

ankitmantri commented 2 years ago

pls check your function call its not correct show_result_pyplot(img, result,('Bordered', 'cell', 'Borderless'), score_thr=0.85) show_result_pyplot(model, img, result, score_thr=0.5)

meet1919 commented 2 years ago

I used the later one that is show_result_pyplot(model, img, result, score_thr=0.5). No error came but it just displays input image. No cells or table are detected

ankitmantri commented 2 years ago

I am also stuck at the same problem

mrtranducdung commented 2 years ago

when the version of mmdetection is 1.2.0, everything was ok. However when I upgrade mmdetection to the latest version, I got the same problem. May I ask is there anyway to use cascadetablenet with latest mmdetection version?

NBd-hub commented 2 years ago

i have the same problem,how to salve it

hmtrii commented 2 years ago

I believe that the configs is not compatible with the later mmdet version anymore . You guys can reference this dicussion #77

serendipity109 commented 2 years ago

You can find the answer from this demo.