mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
Fix check
This commit is contained in:
parent
4cea4a938d
commit
a586ef80e0
@ -183,7 +183,7 @@ class FaceClassificationModel:
|
|||||||
|
|
||||||
res = self.classifier.predict([embedding])
|
res = self.classifier.predict([embedding])
|
||||||
|
|
||||||
if not res:
|
if res is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
label = res[0]
|
label = res[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user