CascadeTabNet icon indicating copy to clipboard operation
CascadeTabNet copied to clipboard

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

Open meet1919 opened this issue 3 years ago • 9 comments

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

meet1919 avatar Oct 25 '21 16:10 meet1919

config_file = './Config/cascade_mask_rcnn_hrnetv2p_w32_20e_v2.py'

Use v2 for your config file

ankitmantri avatar Oct 26 '21 16:10 ankitmantri

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

meet1919 avatar Oct 26 '21 17:10 meet1919

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)

ankitmantri avatar Oct 26 '21 19:10 ankitmantri

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

meet1919 avatar Oct 27 '21 06:10 meet1919

I am also stuck at the same problem

ankitmantri avatar Oct 27 '21 10:10 ankitmantri

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?

mrtranducdung avatar Feb 21 '22 08:02 mrtranducdung

i have the same problem,how to salve it

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

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

hmtrii avatar Mar 10 '22 04:03 hmtrii

You can find the answer from this demo.

serendipity109 avatar Jun 28 '22 09:06 serendipity109