bruh moment 4
This commit is contained in:
parent
654eb7afd5
commit
f8194a4e9d
3
run.py
3
run.py
@ -72,6 +72,7 @@ def save_file():
|
|||||||
|
|
||||||
|
|
||||||
def start():
|
def start():
|
||||||
|
print("DON'T WORRY. IT'S NOT STUCK.\n" * 5)
|
||||||
if not args['source_img'] or not os.path.isfile(args['source_img']):
|
if not args['source_img'] or not os.path.isfile(args['source_img']):
|
||||||
print("\n[WARNING] Please select an image containing a face.")
|
print("\n[WARNING] Please select an image containing a face.")
|
||||||
return
|
return
|
||||||
@ -90,7 +91,7 @@ def start():
|
|||||||
return
|
return
|
||||||
video_name = target_path.split(sep)[-1].split(".")[0]
|
video_name = target_path.split(sep)[-1].split(".")[0]
|
||||||
output_dir = target_path.replace(target_path.split(sep)[-1], "") + sep + video_name
|
output_dir = target_path.replace(target_path.split(sep)[-1], "") + sep + video_name
|
||||||
if sep = "\\":
|
if sep == "\\":
|
||||||
output_dir = output_dir.lstrip("\\", "")
|
output_dir = output_dir.lstrip("\\", "")
|
||||||
Path(output_dir).mkdir(exist_ok=True)
|
Path(output_dir).mkdir(exist_ok=True)
|
||||||
fps = detect_fps(target_path)
|
fps = detect_fps(target_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user