Code Monkey home page Code Monkey logo

cascadetsrdet's Introduction

Rethinking Detection Based Table Structure Recognition for Visually Rich Document Images

Paper Link

https://arxiv.org/abs/2312.00699

Requirements

This codebase is built on top of Detectron2. Follow the instructions here to install Detectron2.

Datasets and Pretrained Model

Dataset Weights
PubTables1M PubTables1M
FinTabNet FinTabNet
SciTSR SciTSR

Configuration and Training

Inference and Evaluation

Check the inference.py and test.sh for the inference. A sample inference command could be:

python inference.py --mode recognize --structure_config_path <path of config.yaml> --structure_model_path <path of weight> --structure_device cuda --image_dir <dir of table images> --out_dir <output dir> --html --visualize --csv --crop_padding 0

Check the teds.py for calculating the TEDS score.

Citing

Please cite our work if you think it is helpful:

@article{xiao2023rethinking,
  title={Rethinking Detection Based Table Structure Recognition for Visually Rich Documents},
  author={Xiao, Bin and Simsek, Murat and Kantarci, Burak and Alkheir, Ala Abu},
  journal={arXiv preprint arXiv:2312.00699},
  year={2023}
}

Acknowledgement

This project heavily relys on Table-Transformer, especially for the post-processing part. We thank the authors for sharing their implementations and related resources.

cascadetsrdet's People

Contributors

uobinxiao avatar

Stargazers

Rijon Mushkolaj avatar  avatar xhf avatar  avatar  avatar

Watchers

 avatar  avatar

cascadetsrdet's Issues

Model loading warnings

Hello!

During loading of PubTables1M model I see the following messages:

Creating inference pipeline
Some model parameters or buffers are not found in the checkpoint:
backbone.bottom_up.res2.0.conv1.norm.num_batches_tracked
backbone.bottom_up.res2.0.conv2.norm.num_batches_tracked
backbone.bottom_up.res2.0.conv3.norm.num_batches_tracked
backbone.bottom_up.res2.0.shortcut.norm.num_batches_tracked
backbone.bottom_up.res2.1.conv1.norm.num_batches_tracked
backbone.bottom_up.res2.1.conv2.norm.num_batches_tracked
backbone.bottom_up.res2.1.conv3.norm.num_batches_tracked
backbone.bottom_up.res2.2.conv1.norm.num_batches_tracked
backbone.bottom_up.res2.2.conv2.norm.num_batches_tracked
backbone.bottom_up.res2.2.conv3.norm.num_batches_tracked
backbone.bottom_up.stem.conv1.norm.num_batches_tracked
The checkpoint state_dict contains keys that are not used by the model:
  backbone.bottom_up.res3.4.spatial_gating_unit.conv0.{bias, weight}
  backbone.bottom_up.res4.6.spatial_gating_unit.conv0.{bias, weight}
  backbone.bottom_up.res5.3.spatial_gating_unit.conv0.{bias, weight}

Is this behavior correct?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.