gmft-tatr-onnx / README.md
welcomyou's picture
docs: model card
2ea4e1d verified
|
Raw
History Blame
1.71 kB
metadata
library_name: onnxruntime
pipeline_tag: object-detection
license: mit
base_model: microsoft/table-transformer-detection
tags:
  - table-detection
  - table-structure-recognition
  - tatr
  - table-transformer
  - onnx
  - gmft

Microsoft Table Transformer (TATR) — ONNX re-export

Re-export of Microsoft's Table Transformer to ONNX, packaged the way GMFT consumes it. Used by ScanIndex for table detection + structure recognition during DOCX export.

Variants

Subdir Upstream Task
gmft_onnx/detection/model.onnx microsoft/table-transformer-detection Detect table bounding boxes on a page
gmft_onnx/structure/model.onnx microsoft/table-transformer-structure-recognition-v1.1-all Detect rows / columns / cells inside a cropped table

Each subdir also contains the HF config.json + preprocessor metadata so transformers / optimum can wrap the ONNX directly.

Loading

from huggingface_hub import snapshot_download
local = snapshot_download("welcomyou/gmft-tatr-onnx", local_dir="models")
# Detection:  f"{local}/gmft_onnx/detection/model.onnx"
# Structure:  f"{local}/gmft_onnx/structure/model.onnx"

Re-export reproduction

See train-convert/gmft/convert/export_gmft_tatr_to_onnx.py.

License

MIT, inherited from Microsoft Table Transformer.