diff --git a/facefusion.ini b/facefusion.ini index a953fe58..b2e9b839 100644 --- a/facefusion.ini +++ b/facefusion.ini @@ -48,7 +48,6 @@ voice_extractor_model = trim_frame_start = trim_frame_end = temp_frame_format = -keep_temp = [output_creation] output_image_quality = diff --git a/facefusion/args_helper.py b/facefusion/args_helper.py index 59988c3b..94a55c0e 100644 --- a/facefusion/args_helper.py +++ b/facefusion/args_helper.py @@ -53,7 +53,6 @@ def apply_args(args : Args, apply_state_item : ApplyStateItem) -> None: apply_state_item('trim_frame_start', args.get('trim_frame_start')) apply_state_item('trim_frame_end', args.get('trim_frame_end')) apply_state_item('temp_frame_format', args.get('temp_frame_format')) - apply_state_item('keep_temp', args.get('keep_temp')) # output creation apply_state_item('output_image_quality', args.get('output_image_quality')) apply_state_item('output_image_scale', args.get('output_image_scale')) diff --git a/facefusion/locales.py b/facefusion/locales.py index 6dde9d26..12af4f06 100644 --- a/facefusion/locales.py +++ b/facefusion/locales.py @@ -134,7 +134,6 @@ LOCALES : Locales =\ 'trim_frame_start': 'specify the starting frame of the target video', 'trim_frame_end': 'specify the ending frame of the target video', 'temp_frame_format': 'specify the temporary resources format', - 'keep_temp': 'keep the temporary resources after processing', 'output_image_quality': 'specify the image quality which translates to the image compression', 'output_image_scale': 'specify the image scale based on the target image', 'output_audio_encoder': 'specify the encoder used for the audio', diff --git a/facefusion/program.py b/facefusion/program.py index c2542124..5e3d6db3 100755 --- a/facefusion/program.py +++ b/facefusion/program.py @@ -168,8 +168,7 @@ def create_frame_extraction_program() -> ArgumentParser: group_frame_extraction.add_argument('--trim-frame-start', help = translator.get('help.trim_frame_start'), type = int, default = facefusion.config.get_int_value('frame_extraction', 'trim_frame_start')) group_frame_extraction.add_argument('--trim-frame-end', help = translator.get('help.trim_frame_end'), type = int, default = facefusion.config.get_int_value('frame_extraction', 'trim_frame_end')) group_frame_extraction.add_argument('--temp-frame-format', help = translator.get('help.temp_frame_format'), default = config.get_str_value('frame_extraction', 'temp_frame_format', 'png'), choices = facefusion.choices.temp_frame_formats) - group_frame_extraction.add_argument('--keep-temp', help = translator.get('help.keep_temp'), action = 'store_true', default = config.get_bool_value('frame_extraction', 'keep_temp')) - args_store.register_args([ 'trim_frame_start', 'trim_frame_end', 'temp_frame_format', 'keep_temp' ], scopes = [ 'api', 'cli' ]) + args_store.register_args([ 'trim_frame_start', 'trim_frame_end', 'temp_frame_format' ], scopes = [ 'api', 'cli' ]) return program diff --git a/facefusion/workflows/core.py b/facefusion/workflows/core.py index 0a72baea..40fa2984 100644 --- a/facefusion/workflows/core.py +++ b/facefusion/workflows/core.py @@ -17,7 +17,6 @@ def setup() -> ErrorCode: def clear() -> ErrorCode: - if not state_manager.get_item('keep_temp'): - clear_temp_directory(state_manager.get_item('temp_path'), state_manager.get_item('output_path')) - logger.debug(translator.get('clearing_temp'), __name__) + clear_temp_directory(state_manager.get_item('temp_path'), state_manager.get_item('output_path')) + logger.debug(translator.get('clearing_temp'), __name__) return 0