Compare commits
1 Commits
4712f3bfda
...
54f914c62f
Author | SHA1 | Date |
---|---|---|
|
54f914c62f |
|
@ -255,6 +255,8 @@ def process_frame(source_face_obj: Face, source_frame_full: Frame, temp_frame: F
|
||||||
return temp_frame
|
return temp_frame
|
||||||
|
|
||||||
|
|
||||||
|
# process_frame_v2 needs to accept source_frame_full as well
|
||||||
|
|
||||||
def _process_image_target_v2(source_frame_full: Frame, temp_frame: Frame) -> Frame:
|
def _process_image_target_v2(source_frame_full: Frame, temp_frame: Frame) -> Frame:
|
||||||
if modules.globals.many_faces:
|
if modules.globals.many_faces:
|
||||||
source_face_obj = default_source_face()
|
source_face_obj = default_source_face()
|
||||||
|
@ -794,3 +796,5 @@ def apply_color_transfer(source, target):
|
||||||
source = (source - source_mean) * (target_std / source_std) + target_mean
|
source = (source - source_mean) * (target_std / source_std) + target_mean
|
||||||
|
|
||||||
return cv2.cvtColor(np.clip(source, 0, 255).astype("uint8"), cv2.COLOR_LAB2BGR)
|
return cv2.cvtColor(np.clip(source, 0, 255).astype("uint8"), cv2.COLOR_LAB2BGR)
|
||||||
|
|
||||||
|
[end of modules/processors/frame/face_swapper.py]
|
||||||
|
|
Loading…
Reference in New Issue