mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-06 13:34:13 +03:00
Mark delivery objects with marker so LLM knows what is happening (#20736)
Some checks are pending
CI / AMD64 Build (push) Waiting to run
CI / Assemble and push default build (push) Blocked by required conditions
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
Some checks are pending
CI / AMD64 Build (push) Waiting to run
CI / Assemble and push default build (push) Blocked by required conditions
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
This commit is contained in:
parent
971521cd8e
commit
685f2c5030
@ -186,6 +186,7 @@ class ReviewDescriptionProcessor(PostProcessorApi):
|
|||||||
thumbs,
|
thumbs,
|
||||||
camera_config.review.genai,
|
camera_config.review.genai,
|
||||||
list(self.config.model.merged_labelmap.values()),
|
list(self.config.model.merged_labelmap.values()),
|
||||||
|
self.config.model.all_attributes,
|
||||||
),
|
),
|
||||||
).start()
|
).start()
|
||||||
|
|
||||||
@ -414,6 +415,7 @@ def run_analysis(
|
|||||||
thumbs: list[bytes],
|
thumbs: list[bytes],
|
||||||
genai_config: GenAIReviewConfig,
|
genai_config: GenAIReviewConfig,
|
||||||
labelmap_objects: list[str],
|
labelmap_objects: list[str],
|
||||||
|
attribute_labels: list[str],
|
||||||
) -> None:
|
) -> None:
|
||||||
start = datetime.datetime.now().timestamp()
|
start = datetime.datetime.now().timestamp()
|
||||||
analytics_data = {
|
analytics_data = {
|
||||||
@ -441,6 +443,10 @@ def run_analysis(
|
|||||||
continue
|
continue
|
||||||
elif label in labelmap_objects:
|
elif label in labelmap_objects:
|
||||||
object_type = label.replace("_", " ").title()
|
object_type = label.replace("_", " ").title()
|
||||||
|
|
||||||
|
if label in attribute_labels:
|
||||||
|
unified_objects.append(f"{object_type} (delivery/service)")
|
||||||
|
else:
|
||||||
unified_objects.append(object_type)
|
unified_objects.append(object_type)
|
||||||
|
|
||||||
analytics_data["unified_objects"] = unified_objects
|
analytics_data["unified_objects"] = unified_objects
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user