mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-30 18:47:40 +03:00
Don't set sub label for none object classification
This commit is contained in:
parent
9d7f5e5438
commit
93fd0fa775
@ -150,11 +150,14 @@ class CustomStateClassificationProcessor(RealTimeProcessorApi):
|
|||||||
score,
|
score,
|
||||||
)
|
)
|
||||||
|
|
||||||
if score >= camera_config.threshold:
|
if score >= camera_config.threshold :
|
||||||
self.requestor.send_data(
|
sub_label = self.labelmap[best_id]
|
||||||
f"{camera}/classification/{self.model_config.name}",
|
|
||||||
self.labelmap[best_id],
|
if sub_label.lower() != "none":
|
||||||
)
|
self.requestor.send_data(
|
||||||
|
f"{camera}/classification/{self.model_config.name}",
|
||||||
|
self.labelmap[best_id],
|
||||||
|
)
|
||||||
|
|
||||||
def handle_request(self, topic, request_data):
|
def handle_request(self, topic, request_data):
|
||||||
if topic == EmbeddingsRequestEnum.reload_classification_model.value:
|
if topic == EmbeddingsRequestEnum.reload_classification_model.value:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user