Skip to content
Snippets Groups Projects

Resolve "BobIpTinyface returns a empty list list on failure but is tested for None"

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -35,7 +35,7 @@ class BobIpTinyface(Base):
@@ -35,7 +35,7 @@ class BobIpTinyface(Base):
# return the annotations for the first/largest face
# return the annotations for the first/largest face
annotations = self.detector.detect(image)
annotations = self.detector.detect(image)
if annotations is not None:
if annotations:
return annotations[0]
return annotations[0]
else:
else:
return None
return None
Loading