File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
examples/heatmap_and_track Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,30 @@ supervision package for multiple tasks such as drawing heatmap annotations, trac
50
50
51
51
# # ⚙️ run
52
52
53
+ Before running the script, make sure to download the YOLO weights:
53
54
` ` ` bash
55
+ # Download YOLOv8n weights (if you don't have your own weights file)
56
+ wget https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8n.pt -O weight.pt
57
+ # Or using curl
58
+ curl -L https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8n.pt -o weight.pt
59
+ ` ` `
60
+
61
+ Then run the script:
62
+ ` ` ` bash
63
+ # Run with default demo video (people-walking.mp4)
64
+ python script.py \
65
+ --source_weights_path weight.pt \
66
+ --confidence_threshold 0.3 \
67
+ --iou_threshold 0.5 \
68
+ --target_video_path output_video.mp4
69
+
70
+ # Or run with your own video file
54
71
python script.py \
55
72
--source_weights_path weight.pt \
56
- --source_video_path input_video .mp4 \
73
+ --source_video_path your_video .mp4 \
57
74
--confidence_threshold 0.3 \
58
75
--iou_threshold 0.5 \
59
- --target_video_path output_video.mp4
76
+ --target_video_path output_video.mp4
60
77
` ` `
61
78
62
79
# # © license
You can’t perform that action at this time.
0 commit comments