mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +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 attributes in attribute_detections.values():
|
||||||
for attribute in attributes:
|
for attribute in attributes:
|
||||||
filtered_objects = filter(
|
filtered_objects = filter(
|
||||||
lambda o: o["label"] in attribute_detections.keys()
|
lambda o: attribute.label
|
||||||
and attribute.label
|
|
||||||
in model_config.attributes_map.get(o["label"], []),
|
in model_config.attributes_map.get(o["label"], []),
|
||||||
all_objects,
|
all_objects,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user