Commit dc7589fe authored by Manuel Günther's avatar Manuel Günther

Merge branch 'none' into 'master'

Account for failed extractor

See merge request !29
parents 2ff27466 de475ee1
Pipeline #17666 passed with stages
in 16 minutes and 55 seconds
......@@ -83,8 +83,13 @@ class Wrapper (bob.bio.base.extractor.Extractor):
for index, frame, quality in self.frame_selector(frames):
# extract features
extracted = self.extractor(frame)
# add features to new frame container
fc.add(index, extracted, quality)
if extracted is not None:
# add features to new frame container
fc.add(index, extracted, quality)
if not len(fc):
return None
return fc
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment