Open-weight model · Object detection
detr-doc-table-detection
by Taha Douaji TahaDouaji/detr-doc-table-detection
detr-doc-table-detection is a model trained to detect both Bordered and Borderless tables in documents, based on facebook/detr-resnet-50. This model can be used for the task of object detection.
Runs On
What it takes to serve detr-doc-table-detection (42M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.
| Precision | Weights | Memory needed | Cheapest setup | Per hour | Also fits |
|---|---|---|---|---|---|
| 16-bit | 0.1 GB | 0.1 GB | 1x MI300X (192 GB) Vultr |
$1.85 | 1x H100 $1.99 · 1x MI325X $2.00 |
| 8-bit | 0.0 GB | 0.0 GB | 1x MI300X (192 GB) Vultr |
$1.85 | 1x H100 $1.99 · 1x MI325X $2.00 |
| 4-bit | 0.0 GB | 0.0 GB | 1x MI300X (192 GB) Vultr |
$1.85 | 1x H100 $1.99 · 1x MI325X $2.00 |
Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.
Model Card
By Taha Douaji, published under apache-2.0, revision 14ed1f62a7b7.
Model Card for detr-doc-table-detection
Model Details
detr-doc-table-detection is a model trained to detect both Bordered and Borderless tables in documents, based on facebook/detr-resnet-50.
- Developed by: Taha Douaji
- Shared by [Optional]: Taha Douaji
- Model type: Object Detection
- Language(s) (NLP): More information needed
- License: More information needed
- Parent Model: facebook/detr-resnet-50
- Resources for more information:
- Associated Paper
Uses
Direct Use
This model can be used for the task of object detection.
Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
Recommendations
Configuration
- Architecture
- DetrForObjectDetection
- Context length (tokens)
- 1,024
- Layers
- 6
- Stored precision
- float32
- Model type
- detr
Identity and Version
- Repository
- TahaDouaji/detr-doc-table-detection
- Publisher
- Taha Douaji
- Task
- Object detection
- Modality
- Image
- Library
- transformers
- Parameters
- 42M parameters
- Languages
- Not stated by the source
- Revision
- 14ed1f62a7b71629c187634e565d7abe3273b2c6
- First published
- 2022-03-11
- Last updated
- 2025-11-10
Files and Weights
9 files, 499.9 MB in total. The weights are 3 files totalling 499.9 MB in bin, onnx, safetensors.
Every file
| File | Type | Size | SHA-256 |
|---|---|---|---|
| model.safetensors | Weights | 166.5 MB | 3ff889d5b349 |
| onnx/model.onnx | Weights | 166.7 MB | fe10a923bc0f |
| pytorch_model.bin | Weights | 166.6 MB | 7e87cd360a5e |
| config.json | Configuration | 1.1 KB | — |
| onnx/config.json | Configuration | 1.3 KB | — |
| onnx/preprocessor_config.json | Configuration | 455 B | — |
| preprocessor_config.json | Configuration | 302 B | — |
| README.md | Documentation | 4.0 KB | — |
| .gitattributes | Repository | 1.2 KB | — |
License and Download
- License
- apache-2.0
- Access
- Open weights, no gate
- Download size
- 499.9 MB
Released by Taha Douaji through its official repository on Hugging Face. Read the license.
Built From
- Derived from facebook/detr-resnet-50
- Described by arXiv:1910.09700
- Described by arXiv:2005.12872
- Quantized from facebook/detr-resnet-50
- Trained on (disclosed) MohamedExperio/ICDAR2019
Memory Requirements
| Precision | Weights in memory |
|---|---|
| As published | 499.9 MB |
| 16-bit | 0.1 GB |
| 8-bit | 0.0 GB |
| 4-bit | 0.0 GB |
Weights only, from the published parameter count; the key-value cache and runtime add to this.
Questions About detr-doc-table-detection
How much GPU memory does detr-doc-table-detection need?
About 0.1 GB at 16-bit and 0 GB at 4-bit: the weights (42M parameters) plus a working margin. A long context needs more.
What is the cheapest GPU to run detr-doc-table-detection on?
At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.
Can I use detr-doc-table-detection commercially?
Yes. detr-doc-table-detection is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.
What is detr-doc-table-detection's context length?
1,024 tokens, from the maximum position embeddings in its published configuration.
Similar Models
DEtection TRansformer (DETR) model trained end-to-end on COCO 2017 object detection (118k annotated images). It was introduced in the paper End-to-End Object Detection with Transformers by Carion et al. and first released in this repository. Disclaimer: The team releasing DETR did not write a model card for this model so this model card has been written by the Hugging Face team. The DETR model is an encoder-decoder transformer with a convolutional backbone. Two heads are added on top of the decoder outputs in order to perform object detection: a linear layer for the class labels and a MLP (multi-layer perceptron) for the bounding boxes. The model uses so-called object queries to detect…
Deformable DEtection TRansformer (DETR), trained on DocLayNet (including 80k annotated pages in 11 classes). You can use this model in the serverless Aryn Partitioning Service. You can get started here The DETR model is an encoder-decoder transformer with a convolutional backbone. Two heads are added on top of the decoder outputs in order to perform object detection: a linear layer for the class labels and a MLP (multi-layer perceptron) for the bounding boxes. The model uses so-called object queries to detect objects in an image. Each object query looks for a particular object in the image. For COCO, the number of object queries is set to 100. The model is trained using a "bipartite…
However, we observe that the speed and accuracy of YOLOs are negatively affected by the NMS. Recently, end-to-end Transformer-based detectors (DETRs) have provided an alternative to eliminating NMS. Nevertheless, the high computational cost limits their practicality and hinders them from fully exploiting the advantage of excluding NMS. In this paper, we propose the Real-Time DEtection TRansformer (RT-DETR), the first real-time end-to-end object detector to our best knowledge that addresses the above dilemma. We build RT-DETR in two steps, drawing on the advanced DETR: first we focus on maintaining accuracy while improving speed, followed by maintaining speed while improving accuracy.…
However, we observe that the speed and accuracy of YOLOs are negatively affected by the NMS. Recently, end-to-end Transformer-based detectors (DETRs) have provided an alternative to eliminating NMS. Nevertheless, the high computational cost limits their practicality and hinders them from fully exploiting the advantage of excluding NMS. In this paper, we propose the Real-Time DEtection TRansformer (RT-DETR), the first real-time end-to-end object detector to our best knowledge that addresses the above dilemma. We build RT-DETR in two steps, drawing on the advanced DETR: first we focus on maintaining accuracy while improving speed, followed by maintaining speed while improving accuracy.…
The RT-DETRv2 model was proposed in RT-DETRv2: Improved Baseline with Bag-of-Freebies for Real-Time Detection Transformer by Wenyu Lv, Yian Zhao, Qinyao Chang, Kui Huang, Guanzhong Wang, Yi Liu. RT-DETRv2 refines RT-DETR by introducing selective multi-scale feature extraction, a discrete sampling operator for broader deployment compatibility, and improved training strategies like dynamic data augmentation and scale-adaptive hyperparameters. These changes enhance flexibility and practicality while maintaining real-time performance. This model was contributed by @jadechoghari with the help of @cyrilvallez and @qubvel-hf This is RT-DETRv2 consistently outperforms its predecessor across all…
