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ẽ.
Note:trust_remote_code=True is required because this model uses custom modeling_dfine.py. The checkpoint (~1GB) is downloaded automatically to ~/.cache/huggingface/ on first run.
Important: You must run this code from the D-FINE root directory so that the source code (src/) can be imported.
Trained on a specific document layout dataset; generalization to other document types is not guaranteed.
Requires D-FINE source code to be cloned and available locally for inference.
The checkpoint file is ~1GB in size.
License
This model is released under the Apache License 2.0, inherited from the D-FINE base model.
Citation
Base model (D-FINE):
bibtex
1@article{peng2024d,
2 title={D-FINE: Redefine Regression Task in DETRs as Fine-grained Distribution Refinement},
3 author={Peng, Yansong and Songtao, Liu and others},
4 journal={arXiv preprint arXiv:2407.06537},
5 year={2024}
6}