remove --keep-temp

This commit is contained in:
harisreedhar
2025-11-25 19:43:02 +05:30
committed by henryruhs
parent 1cfabf6639
commit 2dbf4523fe
5 changed files with 3 additions and 8 deletions
-1
View File
@@ -48,7 +48,6 @@ voice_extractor_model =
trim_frame_start =
trim_frame_end =
temp_frame_format =
keep_temp =
[output_creation]
output_image_quality =
-1
View File
@@ -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'))
-1
View File
@@ -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',
+1 -2
View File
@@ -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
+2 -3
View File
@@ -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