mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 09:07:41 +03:00
Update attribute for attribute type object classification
This commit is contained in:
parent
69977e775d
commit
6f071d9fca
@ -295,8 +295,14 @@ class CustomObjectClassificationProcessor(RealTimeProcessorApi):
|
||||
EventMetadataTypeEnum.sub_label,
|
||||
(obj_data["id"], sub_label, score),
|
||||
)
|
||||
elif self.model_config.object_config.classification_type == ObjectClassificationType.attribute:
|
||||
pass
|
||||
elif (
|
||||
self.model_config.object_config.classification_type
|
||||
== ObjectClassificationType.attribute
|
||||
):
|
||||
self.sub_label_publisher.publish(
|
||||
EventMetadataTypeEnum.attribute,
|
||||
(obj_data["id"], self.model_config.name, sub_label, score),
|
||||
)
|
||||
|
||||
def handle_request(self, topic, request_data):
|
||||
if topic == EmbeddingsRequestEnum.reload_classification_model.value:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user