mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-09 08:37:37 +03:00
Remove titlecase to avoid Gemma4 handling plain labels as proper nouns
This commit is contained in:
parent
b956d942a1
commit
eb68a9978d
@ -556,7 +556,7 @@ def run_analysis(
|
|||||||
if "-verified" in label:
|
if "-verified" in label:
|
||||||
continue
|
continue
|
||||||
elif label in labelmap_objects:
|
elif label in labelmap_objects:
|
||||||
object_type = titlecase(label.replace("_", " "))
|
object_type = label.replace("_", " ")
|
||||||
|
|
||||||
if label in attribute_labels:
|
if label in attribute_labels:
|
||||||
unified_objects.append(f"{object_type} (delivery/service)")
|
unified_objects.append(f"{object_type} (delivery/service)")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user