mirror of
https://github.com/s0md3v/roop.git
synced 2025-12-07 18:38:28 +00:00
Ok, here is the fix without regexps
This commit is contained in:
parent
156ae66a57
commit
7fe20aba5c
@ -63,7 +63,8 @@ def restore_audio(target_path: str, output_path: str) -> None:
|
|||||||
|
|
||||||
def get_temp_frame_paths(target_path: str) -> List[str]:
|
def get_temp_frame_paths(target_path: str) -> List[str]:
|
||||||
temp_directory_path = get_temp_directory_path(target_path)
|
temp_directory_path = get_temp_directory_path(target_path)
|
||||||
return glob.glob(re.sub(r'([\[\]])','[\\1]', os.path.join(temp_directory_path, '*.png')))
|
files = glob.glob('*.png', root_dir=temp_directory_path)
|
||||||
|
return [os.path.join(temp_directory_path, item) for item in files]
|
||||||
|
|
||||||
|
|
||||||
def get_temp_directory_path(target_path: str) -> str:
|
def get_temp_directory_path(target_path: str) -> str:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user