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

AttributeError: 'ConfigDict' object has no attribute 'nms' #138

Closed dennis21bb closed 2 years ago

dennis21bb commented 2 years ago

I'm getting the error while trying to run the code, at the following line:

_result = inferencedetector(model, i)

did anyone run into the same issue and has a solution?

mfl22 commented 2 years ago

Are you using mmdetection v1 or v2? I ran into the same issue with mmdet v2, just copy the relevant attribute from mmdet/configs/_base_/models/cascade_mask_rcnn_r50_fpn.py (you will need to repeat that for several attributes). The config file cascade_mask_rcnn_hrnetv2p_w32_20e_v2.py needs to be updated...

dennis21bb commented 2 years ago

Are you using mmdetection v1 or v2? I ran into the same issue with mmdet v2, just copy the relevant attribute from mmdet/configs/_base_/models/cascade_mask_rcnn_r50_fpn.py (you will need to repeat that for several attributes). The config file cascade_mask_rcnn_hrnetv2p_w32_20e_v2.py needs to be updated...

Yeah that seems to be the problem then, can you tell me where exactly the attribute needs to be added?

omrastogi commented 2 years ago

hi @dennis21bb @mfproto, I've come across the same problem and am looking where to update the attribute. Can you please help me, with this. Thanks

mfl22 commented 2 years ago

@omrastogi I created a pull request #144 so you can try that...