mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-07 02:18:07 +01:00
Various Tweaks (#20713)
* Adjust for commutes * Tweaks * Don't show no models view in grid * Add text-md to inputs * Adjust train title for mobile * Cleanup prompt more * Use i18n functions for tooltip * Fix model complexity causing crash * Cleanup
This commit is contained in:
@@ -120,7 +120,7 @@ class ReviewDescriptionProcessor(PostProcessorApi):
|
||||
|
||||
thumbs = self.get_recording_frames(
|
||||
camera,
|
||||
final_data["start_time"],
|
||||
final_data["start_time"] - buffer_extension,
|
||||
final_data["end_time"] + buffer_extension,
|
||||
height=480, # Use 480p for good balance between quality and token usage
|
||||
)
|
||||
@@ -421,13 +421,12 @@ def run_analysis(
|
||||
name = sub_labels_list[i].replace("_", " ").title()
|
||||
unified_objects.append(f"{name} ({object_type})")
|
||||
|
||||
# Add non-verified objects as "Unrecognized (type)"
|
||||
for label in objects_list:
|
||||
if "-verified" in label:
|
||||
continue
|
||||
elif label in labelmap_objects:
|
||||
object_type = label.replace("_", " ")
|
||||
unified_objects.append(f"Unrecognized ({object_type})")
|
||||
object_type = label.replace("_", " ").title()
|
||||
unified_objects.append(object_type)
|
||||
|
||||
analytics_data["unified_objects"] = unified_objects
|
||||
|
||||
|
||||
Reference in New Issue
Block a user