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.5k stars 430 forks source link

ImportError: cannot import name 'deform_conv_cuda' from 'mmdet.ops.dcn' #163

Open anantgupta129 opened 2 years ago

anantgupta129 commented 2 years ago

I was trying to run the colab file provided by author. getting this error

ImportError                               Traceback (most recent call last)
[<ipython-input-4-a6069ccb3e91>](https://localhost:8080/#) in <module>()
----> 1 from mmdet.apis import init_detector, inference_detector, show_result_pyplot
      2 import mmcv
      3 # Load model
      4 config_file = '/content/CascadeTabNet/Config/cascade_mask_rcnn_hrnetv2p_w32_20e.py'
      5 checkpoint_file = '/content/epoch_36.pth'

8 frames
[/content/mmdetection/mmdet/ops/dcn/deform_conv.py](https://localhost:8080/#) in <module>()
      9 
     10 from mmdet.utils import print_log
---> 11 from . import deform_conv_cuda
     12 
     13 

ImportError: cannot import name 'deform_conv_cuda' from 'mmdet.ops.dcn' (/content/mmdetection/mmdet/ops/dcn/__init__.py)

here my copy of colab file