Aller au contenu
ModelPrésentéExterne
Télécharger

Dfine X Obj Detection

D-FINE HGNetv2-X fine-tuned for document layout analysis

TypeOtherVersionRevision 0733fe6CClasse

Source du modèle

Type
Other
Taille du fichier
957 MB
Version
vRevision 0733fe6
Mis à jour
16 sept. 2026
Téléchargements
3
Source
Hugging Face

Extrait de la source

D-FINE HGNetv2-X fine-tuned for document layout analysis

Sources

1 source
Hugging FacePrincipalVersion 0733fe6aaf6a54f7fe12ead36871d1b524ff963b
huggingface.co/ducnhan0804/dfine-x-obj-detection/tree/0733fe6aaf6a54f7fe12ead36871d1b524ff963b

Vérifié 2 sept.

Artefacts du modèle

1 artefact

best_stg2.pth

pth · 957 MB · SHA-256 133b1d98baab…3736 · Hugging Face

Télécharger

Extraits de sources

2 extraits

--- language: - vi license: apache-2.0 library_name: d-fine pipeline_tag: object-detection tags: - d-fine - object-detection - document-layout - fine-tuned - hgnetv2 --- <div align="center"> # 🔍 D-FINE X — Object Detection for Document Layout **D-FINE HGNetv2-X fine-tuned for document layout analysis** [![license](https://img.shields.io/badge/license-Apache%202.0-green.svg)](https://github.com/Peterande/D-FINE/blob/master/LICENSE) [![mAP50:95](https://img.shields.io/badge/mAP@50%3A95-83.75%25-blue)]() [![mAP50](https://img.shields.io/badge/[email protected]%25-blue)]() [![Python](https://img.shields.io/badge/python-3.8%2B-blue)]() </div> --- ## Overview Mô hình **D-FINE HGNetv2-X** được fine-tune cho bài toán nhận diện bố cục tài liệu (Document Layout Analysis). Mô hình sử dụng kiến trúc D-FINE tiên tiến với cơ chế Fine-grained Distribution Refinement (FDR) để tinh chỉnh bounding box, kết hợp backbone HGNetv2-B5 mạnh mẽ. | Property | Value | |---|---| | Base model | D-FINE (HGNetv2-X) | | Task | Object Detection | | Domain | Document Layout | | Input resolution | 640 × 640 | | Training | 80 epochs (72 Stage 1 + 8 Stage 2) | --- ## Classes | ID | Label | Description | |:---:|---|---| | 0 | `Object-detection` | Generic detectable region | | 1 | `Figure` | Diagrams, illustrations, charts | | 2 | `Icon` | Small symbolic graphics | | 3 | `Table` | Tabular data structures | --- ## Benchmark ### ✅ Best validation metrics (Stage 2) | Metric | Value | |---|---:| | mAP @ \[0.50 : 0.95\] | **0.8375** | | mAP @ 0.50 | **0.9182** | | mAP @ 0.75 | **0.8966** | | AP (Medium) | **0.8703** | | AP (Large) | **0.8384** | | AR @ 100 | **0.9348** | --- ## Usage ### Option 1 — HuggingFace Transformers (recommended) ```bash pip install transformers torch torchvision # Clone D-FINE source code (bắt buộc) git clone https://github.com/Peterande/D-FINE.git cd D-FINE pip install -r requirements.txt ``` ```python from transformers import AutoModel, AutoImageProcessor from PIL import Image processor = AutoImageProcessor.from_pretrained( "ducnhan0804/dfine-x-obj-detection", trust_remote_code=True ) model = AutoModel.from_pretrained( "ducnhan0804/dfine-x-obj-detection", trust_remote_code=True ) image = Image.open("path/to/your/document.png") inputs = processor.preprocess(image) outputs = model(inputs["images"], threshold=0.4) results = processor.post_process_obje...

Source context: 3 downloads · 0 likes · Pipeline object-detection · Library d-fine · Repo ducnhan0804/dfine-x-obj-detection