mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-29 18:17:40 +03:00
Always init embeddings
This commit is contained in:
parent
5a1a7441aa
commit
4658d7ac2a
@ -298,20 +298,8 @@ class FrigateApp:
|
|||||||
migrate_exports(self.config.ffmpeg, list(self.config.cameras.keys()))
|
migrate_exports(self.config.ffmpeg, list(self.config.cameras.keys()))
|
||||||
|
|
||||||
def init_embeddings_client(self) -> None:
|
def init_embeddings_client(self) -> None:
|
||||||
genai_cameras = [
|
# Create a client for other processes to use
|
||||||
c
|
self.embeddings = EmbeddingsContext(self.db)
|
||||||
for c in self.config.cameras.values()
|
|
||||||
if c.enabled_in_config and c.genai.enabled
|
|
||||||
]
|
|
||||||
|
|
||||||
if (
|
|
||||||
self.config.semantic_search.enabled
|
|
||||||
or self.config.lpr.enabled
|
|
||||||
or genai_cameras
|
|
||||||
or self.config.face_recognition.enabled
|
|
||||||
):
|
|
||||||
# Create a client for other processes to use
|
|
||||||
self.embeddings = EmbeddingsContext(self.db)
|
|
||||||
|
|
||||||
def init_inter_process_communicator(self) -> None:
|
def init_inter_process_communicator(self) -> None:
|
||||||
self.inter_process_communicator = InterProcessCommunicator()
|
self.inter_process_communicator = InterProcessCommunicator()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user