We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3895199 commit 3d9c53eCopy full SHA for 3d9c53e
1 file changed
README.md
@@ -22,19 +22,18 @@ pip install streamgrid
22
from ultralytics import YOLO
23
from streamgrid import StreamGrid
24
25
-# Use assets videos for testing
+# Load model
26
model = YOLO("yolo11n.pt")
27
+# model = YOLO("yolo11n_openvino_model") ~2-3x faster
28
StreamGrid(model=model)
29
-# Use your own videos
30
-sources = ["path/to/video1.mp4",
31
- "path/to/video2.mp4",
32
- "path/to/video3.mp4",
33
- "path/to/video4.mp4"]
34
-StreamGrid(sources=sources, model=model)
35
-
36
# Inference on GPU
37
-StreamGrid(sources=sources, device="cuda")
+StreamGrid(
+ sources=[
+ "path/to/video1.mp4", "path/to/video2.mp4",
+ "path/to/video3.mp4", "path/to/video4.mp4"
+ ],
+ device="cuda")
38
39
# Store stream results in CSV file
40
StreamGrid(sources=sources, analytics=True)
0 commit comments