Commit
·
afc200d
1
Parent(s):
eee9495
update README.md
Browse files
README.md
CHANGED
|
@@ -54,6 +54,79 @@ model-index:
|
|
| 54 |
|
| 55 |
<h1 align="center"><strong>D-FINE Small</strong></h1>
|
| 56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
## Citation
|
| 58 |
If you use `D-FINE` or its methods in your work, please cite the following BibTeX entries:
|
| 59 |
|
|
|
|
| 54 |
|
| 55 |
<h1 align="center"><strong>D-FINE Small</strong></h1>
|
| 56 |
|
| 57 |
+
<p align="center">
|
| 58 |
+
<a href="https://huggingface.co/Laudando-Associates-LLC/d-fine-small">
|
| 59 |
+
<img src="https://img.shields.io/badge/HuggingFace-Model-yellow?logo=huggingface&style=for-the-badge">
|
| 60 |
+
</a>
|
| 61 |
+
</p>
|
| 62 |
+
|
| 63 |
+
This repository contains the [D-FINE](https://arxiv.org/abs/2410.13842) Small model, a real-time object detector designed for efficient and accurate object detection tasks.
|
| 64 |
+
|
| 65 |
+
## Try it in the Browser
|
| 66 |
+
|
| 67 |
+
You can test this model using our interactive Gradio demo:
|
| 68 |
+
|
| 69 |
+
<p align="center">
|
| 70 |
+
<a href="https://huggingface.co/spaces/Laudando-Associates-LLC/d-fine-demo">
|
| 71 |
+
<img src="https://img.shields.io/badge/Launch%20Demo-Gradio-FF4B4B?logo=gradio&logoColor=white&style=for-the-badge">
|
| 72 |
+
</a>
|
| 73 |
+
</p>
|
| 74 |
+
|
| 75 |
+
## Model Overview
|
| 76 |
+
|
| 77 |
+
* Architecture: D-FINE Small
|
| 78 |
+
|
| 79 |
+
* Parameters: 10.3M
|
| 80 |
+
|
| 81 |
+
* Performance:
|
| 82 |
+
|
| 83 |
+
- mAP@[0.50:0.95]: 0.816
|
| 84 |
+
|
| 85 |
+
- mAP@[0.50]: 0.983
|
| 86 |
+
|
| 87 |
+
- AR@[0.50:0.95]: 0.859
|
| 88 |
+
|
| 89 |
+
- F1 Score: 0.951
|
| 90 |
+
|
| 91 |
+
* Framework: PyTorch / ONNX
|
| 92 |
+
|
| 93 |
+
* Training Hardware: 2× NVIDIA RTX A6000 GPUs
|
| 94 |
+
|
| 95 |
+
## Download
|
| 96 |
+
|
| 97 |
+
| Format | Link |
|
| 98 |
+
|:--------:|:------:|
|
| 99 |
+
| ONNX | <a href="https://huggingface.co/Laudando-Associates-LLC/d-fine-small/resolve/main/model.onnx"><img src="https://img.shields.io/badge/-ONNX-005CED?style=for-the-badge&logo=onnx&logoColor=white"></a> |
|
| 100 |
+
| PyTorch | <a href="https://huggingface.co/Laudando-Associates-LLC/d-fine-small/resolve/main/pytorch_model.bin"><img src="https://img.shields.io/badge/PyTorch-EE4C2C?style=for-the-badge&logo=pytorch&logoColor=white"></a> |
|
| 101 |
+
|
| 102 |
+
## Usage
|
| 103 |
+
|
| 104 |
+
To utilize this model, ensure you have the shared [D-FINE processor](https://huggingface.co/Laudando-Associates-LLC/d-fine):
|
| 105 |
+
|
| 106 |
+
```python
|
| 107 |
+
from transformers import AutoProcessor, AutoModel
|
| 108 |
+
|
| 109 |
+
# Load processor
|
| 110 |
+
processor = AutoProcessor.from_pretrained("Laudando-Associates-LLC/d-fine", trust_remote_code=True)
|
| 111 |
+
|
| 112 |
+
# Load model
|
| 113 |
+
model = AutoModel.from_pretrained("Laudando-Associates-LLC/d-fine-small", trust_remote_code=True)
|
| 114 |
+
|
| 115 |
+
# Process image
|
| 116 |
+
inputs = processor(image)
|
| 117 |
+
|
| 118 |
+
# Run inference
|
| 119 |
+
outputs = model(**inputs, conf_threshold=0.4)
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
## Evaluation
|
| 123 |
+
|
| 124 |
+
This model was trained and evaluated on the [L&A Pucks Dataset](https://huggingface.co/datasets/Laudando-Associates-LLC/pucks).
|
| 125 |
+
|
| 126 |
+
## License
|
| 127 |
+
|
| 128 |
+
This model is licensed under the [Apache License 2.0](https://github.com/Peterande/D-FINE/blob/master/LICENSE).
|
| 129 |
+
|
| 130 |
## Citation
|
| 131 |
If you use `D-FINE` or its methods in your work, please cite the following BibTeX entries:
|
| 132 |
|