mirror of
https://github.com/s0md3v/roop.git
synced 2025-12-06 18:08:29 +00:00
Set None instead of del
This commit is contained in:
parent
d46fd55b91
commit
373e48684c
@ -43,7 +43,7 @@ def pre_start() -> bool:
|
||||
def post_process() -> None:
|
||||
global FACE_ENHANCER
|
||||
|
||||
del FACE_ENHANCER
|
||||
FACE_ENHANCER = None
|
||||
|
||||
|
||||
def enhance_face(temp_frame: Frame) -> Frame:
|
||||
|
||||
@ -47,7 +47,7 @@ def pre_start() -> bool:
|
||||
def post_process() -> None:
|
||||
global FACE_SWAPPER
|
||||
|
||||
del FACE_SWAPPER
|
||||
FACE_SWAPPER = None
|
||||
|
||||
|
||||
def swap_face(source_face: Face, target_face: Face, temp_frame: Frame) -> Frame:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user