Remove device config and use model size to configure device used (#14290)

* Remove device config and use model size to configure device used

* Don't show Frigate+ submission when in progress

* Add docs link for bounding box colors
This commit is contained in:
Nicolas Mowen
2024-10-11 16:08:14 -06:00
committed by GitHub
parent 8a8a0c7dec
commit 6e332bbdf8
6 changed files with 24 additions and 12 deletions

View File

@@ -12,7 +12,6 @@ class SemanticSearchConfig(FrigateBaseModel):
reindex: Optional[bool] = Field(
default=False, title="Reindex all detections on startup."
)
device: str = Field(default="AUTO", title="Device Type")
model_size: str = Field(
default="small", title="The size of the embeddings model used."
)

View File

@@ -127,7 +127,7 @@ class Embeddings:
model_size=config.model_size,
model_type="vision",
requestor=self.requestor,
device=self.config.device,
device="GPU" if config.model_size == "large" else "CPU",
)
def upsert_thumbnail(self, event_id: str, thumbnail: bytes):