From a586ef80e0b991be309e7f245dc6f2b8839319ba Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 7 Nov 2024 16:26:49 -0700 Subject: [PATCH] Fix check --- frigate/util/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/util/model.py b/frigate/util/model.py index 03d3c2733..d43320006 100644 --- a/frigate/util/model.py +++ b/frigate/util/model.py @@ -183,7 +183,7 @@ class FaceClassificationModel: res = self.classifier.predict([embedding]) - if not res: + if res is None: return None label = res[0]