mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-08 13:51:01 +02:00
Update object_detection.py
This commit is contained in:
parent
ec5ac92f8f
commit
5cf5c6c3eb
@ -197,7 +197,7 @@ def async_run_detector(
|
|||||||
):
|
):
|
||||||
# Set thread and process titles for logging and debugging
|
# Set thread and process titles for logging and debugging
|
||||||
threading.current_thread().name = f"detector:{name}"
|
threading.current_thread().name = f"detector:{name}"
|
||||||
logger.info(f"Starting MemryX Async detection process: {os.getpid()}")
|
logger.info(f"Starting async detection process: {os.getpid()}")
|
||||||
setproctitle(f"frigate.detector.{name}")
|
setproctitle(f"frigate.detector.{name}")
|
||||||
|
|
||||||
stop_event = mp.Event() # Used to gracefully stop threads on signal
|
stop_event = mp.Event() # Used to gracefully stop threads on signal
|
||||||
@ -274,7 +274,7 @@ def async_run_detector(
|
|||||||
while not stop_event.is_set():
|
while not stop_event.is_set():
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
logger.info("Exited MemryX detection process...")
|
logger.info("Exited async detection process...")
|
||||||
|
|
||||||
|
|
||||||
class ObjectDetectProcess:
|
class ObjectDetectProcess:
|
||||||
|
Loading…
Reference in New Issue
Block a user