Skip to content

Commit

Permalink
Fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Nov 19, 2024
1 parent 1cddb2c commit 4344a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frigate/util/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def classify_face(self, embedding: np.ndarray) -> Optional[tuple[str, float]]:

res = self.classifier.predict([embedding])

if not res:
if res is None:
return None

label = res[0]
Expand Down

0 comments on commit 4344a4a

Please sign in to comment.