Set None instead of del

This commit is contained in:
henryruhs 2023-06-22 21:19:02 +02:00
parent d46fd55b91
commit 373e48684c
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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: