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: __init__() got an unexpected keyword argument 'roi_head' #115

Open Sagor-Saha opened 3 years ago

Sagor-Saha commented 3 years ago

Tried to run the file as given in google colab.

Scheriaa commented 3 years ago

Try to give the v2 of the config file: replace "config_file = 'CascadeTabNet/Config/cascade_mask_rcnn_hrnetv2p_w32_20e.py'" by 'config_file = 'CascadeTabNet/Config/cascade_mask_rcnn_hrnetv2p_w32_20e_v2.py'

myh12138 commented 2 years ago

Try to give the v2 of the config file: replace "config_file = 'CascadeTabNet/Config/cascade_mask_rcnn_hrnetv2p_w32_20e.py'" by 'config_file = 'CascadeTabNet/Config/cascade_mask_rcnn_hrnetv2p_w32_20e_v2.py'

I tried but still wrong,do you have any other opinions. Thanks.

myh12138 commented 2 years ago

Try to give the v2 of the config file: replace "config_file = 'CascadeTabNet/Config/cascade_mask_rcnn_hrnetv2p_w32_20e.py'" by 'config_file = 'CascadeTabNet/Config/cascade_mask_rcnn_hrnetv2p_w32_20e_v2.py'

I solved it by "config_file = 'CascadeTabNet/Config/cascade_mask_rcnn_hrnetv2p_w32_20e.py'"