mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-14 02:37:00 -07:00
fix bug
This commit is contained in:
parent
a3c91271d0
commit
3a9e851339
2 changed files with 5 additions and 3 deletions
|
@ -305,7 +305,9 @@ def MergeMaskedFace (predictor_func, predictor_input_shape,
|
|||
else:
|
||||
alpha = cfg.color_degrade_power / 100.0
|
||||
out_img = (out_img*(1.0-alpha) + out_img_reduced*alpha)
|
||||
|
||||
else:
|
||||
out_img = img_bgr.copy()
|
||||
|
||||
out_merging_mask_a = img_face_mask_a
|
||||
|
||||
return out_img, out_merging_mask_a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue