From 72a640c66c9ec1304832dc1c5474722dc1d99cc0 Mon Sep 17 00:00:00 2001 From: iperov Date: Thu, 7 Feb 2019 11:29:20 +0400 Subject: [PATCH] fox Converter.py for debug --- mainscripts/Converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainscripts/Converter.py b/mainscripts/Converter.py index c629102..0de31bb 100644 --- a/mainscripts/Converter.py +++ b/mainscripts/Converter.py @@ -190,7 +190,7 @@ class ConvertSubprocessor(SubprocessorBase): image = self.converter.convert_face(image, image_landmarks, self.debug) if self.debug: for img in image: - cv2.imshow ('Debug convert', img ) + cv2.imshow ('Debug convert', (img*255).astype(np.uint8) ) cv2.waitKey(0) except Exception as e: print ( 'Error while converting face_num [%d] in file [%s]: %s' % (face_num, filename_path, str(e)) )