mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 23:25:25 +03:00
Simplify
This commit is contained in:
parent
2ab14d0ad6
commit
b9044cbfc6
@ -752,8 +752,7 @@ def process_frames(
|
||||
for attributes in attribute_detections.values():
|
||||
for attribute in attributes:
|
||||
filtered_objects = filter(
|
||||
lambda o: o["label"] in attribute_detections.keys()
|
||||
and attribute.label
|
||||
lambda o: attribute.label
|
||||
in model_config.attributes_map.get(o["label"], []),
|
||||
all_objects,
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user