Skip to content

Commit 83df70c

Browse files
committed
v0.1620 - disable ultralytics telemetry by default
1 parent a39d060 commit 83df70c

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

.catgitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Used by catgit; https://github.com/FlyingFathead/catgit
2-
README.md
2+
#README.md
33
CUDA_SETUP.md
44
LICENSE
55
yolo_detections/**

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@ Use `utils/batch_humdet_yolo8_opencv2.py` to run YOLOv8 batch detection on direc
284284
- Add hooks for sending detections to web servers or APIs
285285
286286
## Changelog
287+
- **v0.1620**
288+
- Disabled telemetry in Ultralytics modules by default
289+
- Added a printout on startup to display Ultralytics settings
287290
- **v0.1619**
288291
- **Stream preview in the WebUI can now be swapped between HLS and MJPEG**
289292
- (HLS is sourced from the source RTMP stream; higher frame rates without recoding)

config.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ headless = False
88
# increase the threshold if you're getting false positives
99
# (or, alternatively, use the masking tool provided with the program)
1010
# default_conf_threshold = 0.7
11-
default_conf_threshold = 0.6
11+
default_conf_threshold = 0.5
1212
# Default model variant to use
1313
# for yolov8
1414
# default_model_variant = yolov8m

version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# version.py
22

3-
version_number = "0.1619 (Mar 13 2025)"
3+
version_number = "0.1620 (Mar 25 2025)"

yolov8_live_rtmp_stream_detection.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,19 @@
2525
import pyttsx3
2626
import subprocess
2727
import os
28+
29+
# Set to ´False` to disable Ultralytics telemetry
30+
# (Must be set before ultralytics is imported)
31+
# The switch is set to `False` by default
32+
os.environ['ULTRALYTICS_TELEMETRY'] = 'False'
33+
34+
# import main Ultralytics module
2835
from ultralytics import YOLO
36+
37+
# optional explicit opt-out from Ultralytics telemetry
38+
from ultralytics import settings
39+
settings.update({"sync": False})
40+
2941
import threading
3042
from threading import Thread, Event, Lock
3143
from queue import Queue, Empty, Full
@@ -46,6 +58,9 @@
4658
hz_line()
4759
print(f"::: dvr-yolov8-detection v{version_number} | https://github.com/FlyingFathead/dvr-yolov8-detection/")
4860
hz_line()
61+
# Print the entire settings dict
62+
print("Ultralytics settings:", settings)
63+
hz_line()
4964

5065
# Shared data structures
5166
detections_list = deque(maxlen=100) # Store up to 100 latest detections on web UI

0 commit comments

Comments
 (0)