Fix/image to image (#322)
* Fix image to image when using tolerate * Bump version
This commit is contained in:
parent
7c3900685c
commit
7e990ac5e5
@ -2,7 +2,7 @@ METADATA =\
|
|||||||
{
|
{
|
||||||
'name': 'FaceFusion',
|
'name': 'FaceFusion',
|
||||||
'description': 'Next generation face swapper and enhancer',
|
'description': 'Next generation face swapper and enhancer',
|
||||||
'version': '2.2.0',
|
'version': '2.2.1',
|
||||||
'license': 'MIT',
|
'license': 'MIT',
|
||||||
'author': 'Henry Ruhs',
|
'author': 'Henry Ruhs',
|
||||||
'url': 'https://facefusion.io'
|
'url': 'https://facefusion.io'
|
||||||
|
@ -56,9 +56,9 @@ def pre_process(mode : ProcessMode) -> bool:
|
|||||||
|
|
||||||
|
|
||||||
def post_process() -> None:
|
def post_process() -> None:
|
||||||
|
read_static_image.cache_clear()
|
||||||
if facefusion.globals.video_memory_strategy == 'strict' or facefusion.globals.video_memory_strategy == 'moderate':
|
if facefusion.globals.video_memory_strategy == 'strict' or facefusion.globals.video_memory_strategy == 'moderate':
|
||||||
clear_frame_processor()
|
clear_frame_processor()
|
||||||
read_static_image.cache_clear()
|
|
||||||
if facefusion.globals.video_memory_strategy == 'strict':
|
if facefusion.globals.video_memory_strategy == 'strict':
|
||||||
clear_face_analyser()
|
clear_face_analyser()
|
||||||
clear_content_analyser()
|
clear_content_analyser()
|
||||||
|
@ -156,9 +156,9 @@ def pre_process(mode : ProcessMode) -> bool:
|
|||||||
|
|
||||||
|
|
||||||
def post_process() -> None:
|
def post_process() -> None:
|
||||||
|
read_static_image.cache_clear()
|
||||||
if facefusion.globals.video_memory_strategy == 'strict' or facefusion.globals.video_memory_strategy == 'moderate':
|
if facefusion.globals.video_memory_strategy == 'strict' or facefusion.globals.video_memory_strategy == 'moderate':
|
||||||
clear_frame_processor()
|
clear_frame_processor()
|
||||||
read_static_image.cache_clear()
|
|
||||||
if facefusion.globals.video_memory_strategy == 'strict':
|
if facefusion.globals.video_memory_strategy == 'strict':
|
||||||
clear_face_analyser()
|
clear_face_analyser()
|
||||||
clear_content_analyser()
|
clear_content_analyser()
|
||||||
|
@ -190,10 +190,10 @@ def pre_process(mode : ProcessMode) -> bool:
|
|||||||
|
|
||||||
|
|
||||||
def post_process() -> None:
|
def post_process() -> None:
|
||||||
|
read_static_image.cache_clear()
|
||||||
if facefusion.globals.video_memory_strategy == 'strict' or facefusion.globals.video_memory_strategy == 'moderate':
|
if facefusion.globals.video_memory_strategy == 'strict' or facefusion.globals.video_memory_strategy == 'moderate':
|
||||||
clear_frame_processor()
|
clear_frame_processor()
|
||||||
clear_model_matrix()
|
clear_model_matrix()
|
||||||
read_static_image.cache_clear()
|
|
||||||
if facefusion.globals.video_memory_strategy == 'strict':
|
if facefusion.globals.video_memory_strategy == 'strict':
|
||||||
clear_face_analyser()
|
clear_face_analyser()
|
||||||
clear_content_analyser()
|
clear_content_analyser()
|
||||||
|
@ -129,9 +129,9 @@ def pre_process(mode : ProcessMode) -> bool:
|
|||||||
|
|
||||||
|
|
||||||
def post_process() -> None:
|
def post_process() -> None:
|
||||||
|
read_static_image.cache_clear()
|
||||||
if facefusion.globals.video_memory_strategy == 'strict' or facefusion.globals.video_memory_strategy == 'moderate':
|
if facefusion.globals.video_memory_strategy == 'strict' or facefusion.globals.video_memory_strategy == 'moderate':
|
||||||
clear_frame_processor()
|
clear_frame_processor()
|
||||||
read_static_image.cache_clear()
|
|
||||||
if facefusion.globals.video_memory_strategy == 'strict':
|
if facefusion.globals.video_memory_strategy == 'strict':
|
||||||
clear_face_analyser()
|
clear_face_analyser()
|
||||||
clear_content_analyser()
|
clear_content_analyser()
|
||||||
|
Loading…
Reference in New Issue
Block a user