Skip to content

Commit 3d9c53e

Browse files
committed
update README.md
1 parent 3895199 commit 3d9c53e

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,18 @@ pip install streamgrid
2222
from ultralytics import YOLO
2323
from streamgrid import StreamGrid
2424

25-
# Use assets videos for testing
25+
# Load model
2626
model = YOLO("yolo11n.pt")
27+
# model = YOLO("yolo11n_openvino_model") ~2-3x faster
2728
StreamGrid(model=model)
2829

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-
3630
# Inference on GPU
37-
StreamGrid(sources=sources, device="cuda")
31+
StreamGrid(
32+
sources=[
33+
"path/to/video1.mp4", "path/to/video2.mp4",
34+
"path/to/video3.mp4", "path/to/video4.mp4"
35+
],
36+
device="cuda")
3837

3938
# Store stream results in CSV file
4039
StreamGrid(sources=sources, analytics=True)

0 commit comments

Comments
 (0)