Xuban commited on
Commit
e1472bd
·
verified ·
1 Parent(s): f34055f

Model card: add Usage section

Browse files
Files changed (1) hide show
  1. README.md +13 -0
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)