Update reactor_swapper.py
Fixed missing assignment of result_image
This commit is contained in:
parent
24c9502a3c
commit
87cd569324
@ -481,7 +481,7 @@ def swap_face(
|
|||||||
|
|
||||||
if enhancement_options is not None and swapped > 0:
|
if enhancement_options is not None and swapped > 0:
|
||||||
if mask_face and entire_mask_image is not None:
|
if mask_face and entire_mask_image is not None:
|
||||||
enhance_image_and_mask(result_image, enhancement_options,Image.fromarray(target_img_orig),Image.fromarray(entire_mask_image).convert("L"))
|
result_image = enhance_image_and_mask(result_image, enhancement_options,Image.fromarray(target_img_orig),Image.fromarray(entire_mask_image).convert("L"))
|
||||||
else:
|
else:
|
||||||
result_image = enhance_image(result_image, enhancement_options)
|
result_image = enhance_image(result_image, enhancement_options)
|
||||||
elif mask_face and entire_mask_image is not None and swapped > 0:
|
elif mask_face and entire_mask_image is not None and swapped > 0:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user