Don't pass alpha channel of image. Alpha channel may contained if no face was detected in original file and was copied with alpha channel.

This commit is contained in:
Alexander Court 2020-05-01 18:40:29 +02:00
commit a03b4506db

View file

@ -387,7 +387,8 @@ class InteractiveMergerSubprocessor(Subprocessor):
if cur_frame.is_done:
if not cur_frame.is_shown:
if cur_frame.image is None:
image = cv2_imread (cur_frame.output_filepath, verbose=False)
# delete alpha channel
image = cv2_imread (cur_frame.output_filepath, verbose=False)[:,:,0:3]
image_mask = cv2_imread (cur_frame.output_mask_filepath, verbose=False)
if image is None or image_mask is None:
# unable to read? recompute then