mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 17:14:26 +03:00
Change config name to debug_save_thumbnails
This commit is contained in:
parent
aa71ab8a09
commit
9e80af344e
@ -761,7 +761,7 @@ cameras:
|
|||||||
# Optional: Restrict generation to objects that entered any of the listed zones (default: none, all zones qualify)
|
# Optional: Restrict generation to objects that entered any of the listed zones (default: none, all zones qualify)
|
||||||
required_zones: []
|
required_zones: []
|
||||||
# Optional: Save thumbnails sent to generative AI for review/debugging purposes (default: shown below)
|
# Optional: Save thumbnails sent to generative AI for review/debugging purposes (default: shown below)
|
||||||
save_thumbnails: False
|
debug_save_thumbnails: False
|
||||||
|
|
||||||
# Optional
|
# Optional
|
||||||
ui:
|
ui:
|
||||||
|
|||||||
@ -38,8 +38,9 @@ class GenAICameraConfig(BaseModel):
|
|||||||
default_factory=list,
|
default_factory=list,
|
||||||
title="List of required zones to be entered in order to run generative AI.",
|
title="List of required zones to be entered in order to run generative AI.",
|
||||||
)
|
)
|
||||||
save_thumbnails: bool = Field(
|
debug_save_thumbnails: bool = Field(
|
||||||
default=False, title="Save thumbnails sent to generative AI."
|
default=False,
|
||||||
|
title="Save thumbnails sent to generative AI for debugging purposes.",
|
||||||
)
|
)
|
||||||
|
|
||||||
@field_validator("required_zones", mode="before")
|
@field_validator("required_zones", mode="before")
|
||||||
|
|||||||
@ -232,7 +232,7 @@ class EmbeddingMaintainer(threading.Thread):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if camera_config.genai.save_thumbnails and num_thumbnails > 0:
|
if camera_config.genai.debug_save_thumbnails and num_thumbnails > 0:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"Saving {num_thumbnails} thumbnails for event {event.id}"
|
f"Saving {num_thumbnails} thumbnails for event {event.id}"
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user