MCPcopy
hub / github.com/facefusion/facefusion / get_step_output_path

Function get_step_output_path

facefusion/jobs/job_helper.py:8–16  ·  view source on GitHub ↗
(job_id : str, step_index : int, output_path : str)

Source from the content-addressed store, hash-verified

6
7
8def get_step_output_path(job_id : str, step_index : int, output_path : str) -> Optional[str]:
9 if output_path:
10 output_directory_path, output_file_path = os.path.split(output_path)
11 output_file_name = get_file_name(output_file_path)
12 output_file_extension = get_file_extension(output_file_path)
13
14 if output_file_name and output_file_extension:
15 return os.path.join(output_directory_path, output_file_name + '-' + job_id + '-' + str(step_index) + output_file_extension)
16 return None
17
18
19def suggest_job_id(job_prefix : str = 'job') -> str:

Callers 3

remix_stepFunction · 0.90
test_remix_stepFunction · 0.90

Calls 2

get_file_nameFunction · 0.90
get_file_extensionFunction · 0.90

Tested by 2

test_remix_stepFunction · 0.72