CascadeTabNet
CascadeTabNet copied to clipboard
Results are not accurate when using MMdet 2.x version
Hi everyone! There is a problem with performance when using MMdet 2.x version. I used cascade_mask_rcnn_hrnetv2p_w32_20e_v2.py config file. Also I updated checkpoint file epoch_36.pth with upgrade_model_version.py script. But anyways I am getting not accurate results. Table box is kind of shifted from its actual position.
Steps to reproduce:
!pip install -U openmim
!mim install mmcv-full
!pip install mmdet
!pip uninstall opencv-python-headless==4.5.5.62
!pip install opencv-python-headless==4.1.2.30
import cv2 as cv
import numpy as np
from mmdet.apis import init_detector, inference_detector, show_result_pyplot
import mmcv
# Load model
config_file = '/content/drive/MyDrive/CascadeTabNet/cascade_mask_rcnn_hrnetv2p_w32_20e_v2.py'
checkpoint_file = '/content/drive/MyDrive/CascadeTabNet/epoch_36_updated.pth'
model = init_detector(config_file, checkpoint_file, device='cuda:0')
# Test a single image
img = "/content/drive/MyDrive/table_detection/data/handwritten/handwritten_image_9.png"
# Run Inference
result = inference_detector(model, img)
# Visualization results
show_result_pyplot(model, img, result, score_thr=0.50)

same issue here
Is there any resolution to this issue. I am also facing the same issue with MMdet 2.1 version
Same issue here!

I also run the image in Example/ using mmdet 2.26, the output xml is different from the example xml. There are also no cells, only table coord points

Maybe because some weights are truncated when model migration is processed?
This guide helps dealing with this issue: https://github.com/open-mmlab/mmdetection/tree/master/configs/legacy_1.x