Instructions to use LibreYOLO/LibreDFINEn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LibreYOLO
How to use LibreYOLO/LibreDFINEn with LibreYOLO:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Model card: add Usage section
Browse files
README.md
CHANGED
|
@@ -31,6 +31,19 @@ unified ``LibreYOLO()`` factory routes correctly without filename heuristics.
|
|
| 31 |
See `weights/convert_dfine_weights.py` in the
|
| 32 |
[LibreYOLO source repository](https://github.com/LibreYOLO/libreyolo).
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
## License
|
| 35 |
|
| 36 |
Apache License 2.0. See the [`LICENSE`](./LICENSE) and [`NOTICE`](./NOTICE)
|
|
|
|
| 31 |
See `weights/convert_dfine_weights.py` in the
|
| 32 |
[LibreYOLO source repository](https://github.com/LibreYOLO/libreyolo).
|
| 33 |
|
| 34 |
+
## Usage
|
| 35 |
+
|
| 36 |
+
```bash
|
| 37 |
+
pip install libreyolo
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
```python
|
| 41 |
+
from libreyolo import LibreYOLO
|
| 42 |
+
|
| 43 |
+
model = LibreYOLO("LibreDFINEn.pt")
|
| 44 |
+
results = model("image.jpg", save=True)
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
## License
|
| 48 |
|
| 49 |
Apache License 2.0. See the [`LICENSE`](./LICENSE) and [`NOTICE`](./NOTICE)
|