Xuban commited on
Commit
32bcae0
·
verified ·
1 Parent(s): 679ff70

Fix LibreYOLO usage snippet in dataset card

Browse files
Files changed (1) hide show
  1. README.md +29 -0
README.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - object-detection
4
+ tags:
5
+ - libreyolo
6
+ - video
7
+ pretty_name: LibreYOLO test assets
8
+ ---
9
+
10
+ # LibreYOLO test assets
11
+
12
+ Media files used by LibreYOLO's end-to-end tests. It currently holds one file, `videos/people-walking.mp4` (7.6 MB, about 13.6 s of pedestrians), used by the video inference tests. It is not a training dataset.
13
+
14
+ ## Usage with LibreYOLO
15
+
16
+ ```python
17
+ from huggingface_hub import hf_hub_download
18
+ from libreyolo import LibreYOLO
19
+
20
+ video = hf_hub_download(
21
+ repo_id="LibreYOLO/test-assets",
22
+ filename="videos/people-walking.mp4",
23
+ repo_type="dataset",
24
+ )
25
+
26
+ model = LibreYOLO("LibreYOLOXn.pt")
27
+ for result in model(video, stream=True):
28
+ print(result.frame_idx, len(result))
29
+ ```