Skip to content

Commit

Permalink
date change fixes to webui
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingFathead committed Dec 3, 2024
1 parent c3b5023 commit 00de1ce
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ tts_cooldown = 2
# Too high of a value may introduce lag or dropouts while saving.
# 10 or 20 might be a good starter for many. Can be easily 100-1000.
# Set to 0 or negative for unlimited queue size.
image_save_queue_maxsize = 1000
image_save_queue_maxsize = 5000

[logging]
enable_detection_logging_to_file = True
Expand Down Expand Up @@ -173,4 +173,4 @@ max_workers = 1
# Interval in seconds to batch files before syncing.
# Set to 0 to disable batching (sync files immediately).
# ATTN: the batch interval is currently NOT implemented.
batch_interval = 1
batch_interval = 1
6 changes: 6 additions & 0 deletions remote_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ def __init__(self, config, main_logger, save_dir_base, aggregated_detections_fil
self.MAX_RETRIES = config.getint('remote_sync', 'max_retries', fallback=3)
self.RETRY_DELAY = config.getint('remote_sync', 'retry_delay', fallback=5)

# **Batch Processing Configuration**
self.BATCH_SIZE = config.getint('remote_sync', 'batch_size', fallback=10)
self.BATCH_TIME = config.getint('remote_sync', 'batch_time', fallback=5)

self.logger.info(f"Batch processing enabled with batch size: {self.BATCH_SIZE} and batch time: {self.BATCH_TIME} seconds.")

# Queue Configuration
self.REMOTE_SYNC_QUEUE_MAXSIZE = config.getint('remote_sync', 'remote_sync_queue_maxsize', fallback=1000)
self.remote_sync_queue = Queue(maxsize=self.REMOTE_SYNC_QUEUE_MAXSIZE)
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# version.py

version_number = "0.1614.1 (Nov 29 2024)"
version_number = "0.1614.2 (Dec 3 2024)"
3 changes: 3 additions & 0 deletions yolov8_live_rtmp_stream_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,9 @@ def frame_processing_thread(frame_queue, stop_event, conf_threshold, draw_rectan
# Assign timestamp here
timestamp = datetime.now().strftime('%Y-%m-%d %H:%M:%S')

# Update SAVE_DIR to the current date-based directory
SAVE_DIR = get_current_save_dir()

for detection_index, detection in enumerate(detections):
x1, y1, x2, y2, confidence, class_idx = detection

Expand Down

0 comments on commit 00de1ce

Please sign in to comment.