mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Fix startup issues
This commit is contained in:
parent
10e194b0d1
commit
7e1ca34fc6
@ -397,6 +397,8 @@ class FrigateApp:
|
||||
name=f"audio_capture",
|
||||
args=(self.config, self.event_queue)
|
||||
)
|
||||
audio_process.daemon = True
|
||||
audio_process.start()
|
||||
logger.info(f"Audio process started: {audio_process.pid}")
|
||||
|
||||
def start_timeline_processor(self) -> None:
|
||||
|
||||
@ -19,7 +19,6 @@ from frigate.const import (
|
||||
AUDIO_SAMPLE_RATE,
|
||||
CACHE_DIR,
|
||||
)
|
||||
from frigate.detectors.detection_api import DetectionApi
|
||||
from frigate.object_detection import load_labels
|
||||
from frigate.util import listen
|
||||
|
||||
@ -53,8 +52,8 @@ def listen_to_audio(config: FrigateConfig, event_queue: mp.Queue) -> None:
|
||||
AudioEventMaintainer(camera, stop_event)
|
||||
|
||||
|
||||
class AudioTfl(DetectionApi):
|
||||
def __init__(self, labels):
|
||||
class AudioTfl():
|
||||
def __init__(self):
|
||||
self.labels = load_labels("/audio-labelmap.txt")
|
||||
self.interpreter = Interpreter(
|
||||
model_path="/cpu_audio_model.tflite",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user