mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-24 15:16:21 -07:00
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:
parent
f935bf0465
commit
a03b4506db
1 changed files with 2 additions and 1 deletions
|
@ -387,7 +387,8 @@ class InteractiveMergerSubprocessor(Subprocessor):
|
||||||
if cur_frame.is_done:
|
if cur_frame.is_done:
|
||||||
if not cur_frame.is_shown:
|
if not cur_frame.is_shown:
|
||||||
if cur_frame.image is None:
|
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)
|
image_mask = cv2_imread (cur_frame.output_mask_filepath, verbose=False)
|
||||||
if image is None or image_mask is None:
|
if image is None or image_mask is None:
|
||||||
# unable to read? recompute then
|
# unable to read? recompute then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue