From 410b8e98a0469bdf5142a1a680c620c798eda842 Mon Sep 17 00:00:00 2001 From: Colombo Date: Sun, 27 Oct 2019 18:53:01 +0400 Subject: [PATCH] fix manual extractor --- mainscripts/Extractor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mainscripts/Extractor.py b/mainscripts/Extractor.py index d470931..4cbaee5 100644 --- a/mainscripts/Extractor.py +++ b/mainscripts/Extractor.py @@ -542,7 +542,8 @@ class ExtractSubprocessor(Subprocessor): def on_result (self, host_dict, data, result): if self.manual == True: filename, landmarks = result.filename, result.landmarks - if len(landmarks) != 0: + + if len(landmarks) != 0 and landmarks[0] is not None: self.landmarks = landmarks[0] (h,w,c) = self.image.shape