Update README.md

This commit is contained in:
Taha Douaji 2023-01-03 06:48:04 +00:00 committed by huggingface-web
parent fc0a115cae
commit 82b0136dbd
1 changed files with 2 additions and 19 deletions

View File

@ -8,8 +8,6 @@ tags:
# Model Details # Model Details
## Model Description
detr-doc-table-detection is a model trained to detect both **Bordered** and **Borderless** tables in documents, based on [facebook/detr-resnet-50](https://huggingface.co/facebook/detr-resnet-50). detr-doc-table-detection is a model trained to detect both **Bordered** and **Borderless** tables in documents, based on [facebook/detr-resnet-50](https://huggingface.co/facebook/detr-resnet-50).
- **Developed by:** Taha Douaji - **Developed by:** Taha Douaji
@ -30,10 +28,6 @@ detr-doc-table-detection is a model trained to detect both **Bordered** and **Bo
## Direct Use ## Direct Use
This model can be used for the task of object detection. This model can be used for the task of object detection.
## Downstream Use [Optional]
More information needed.
## Out-of-Scope Use ## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people. The model should not be used to intentionally create hostile or alienating environments for people.
@ -59,14 +53,6 @@ The model was trained on ICDAR2019 Table Dataset
## Training Procedure ## Training Procedure
### Preprocessing
More information needed
### Speeds, Sizes, Times
More information needed
# Evaluation # Evaluation
@ -172,9 +158,7 @@ More information needed
# How to Get Started with the Model # How to Get Started with the Model
Use the code below to get started with the model. Use the code below to get started with the model.
<details>
<summary> Click to expand </summary>
```python ```python
from transformers import DetrImageProcessor, DetrForObjectDetection from transformers import DetrImageProcessor, DetrForObjectDetection
@ -202,5 +186,4 @@ for score, label, box in zip(results["scores"], results["labels"], results["boxe
f"Detected {model.config.id2label[label.item()]} with confidence " f"Detected {model.config.id2label[label.item()]} with confidence "
f"{round(score.item(), 3)} at location {box}" f"{round(score.item(), 3)} at location {box}"
) )
``` ```
</details>