mirror of
https://github.com/s0md3v/roop.git
synced 2025-12-07 18:38:28 +00:00
Update core.py
This commit is contained in:
parent
f9fe11a8a9
commit
dd4a1ddc31
@ -134,8 +134,8 @@ def start() -> None:
|
|||||||
return
|
return
|
||||||
# process image to image
|
# process image to image
|
||||||
if has_image_extension(roop.globals.target_path):
|
if has_image_extension(roop.globals.target_path):
|
||||||
if predict_image(roop.globals.target_path):
|
# if predict_image(roop.globals.target_path):
|
||||||
destroy()
|
# destroy()
|
||||||
shutil.copy2(roop.globals.target_path, roop.globals.output_path)
|
shutil.copy2(roop.globals.target_path, roop.globals.output_path)
|
||||||
# process frame
|
# process frame
|
||||||
for frame_processor in get_frame_processors_modules(roop.globals.frame_processors):
|
for frame_processor in get_frame_processors_modules(roop.globals.frame_processors):
|
||||||
@ -149,8 +149,8 @@ def start() -> None:
|
|||||||
update_status('Processing to image failed!')
|
update_status('Processing to image failed!')
|
||||||
return
|
return
|
||||||
# process image to videos
|
# process image to videos
|
||||||
if predict_video(roop.globals.target_path):
|
# if predict_video(roop.globals.target_path):
|
||||||
destroy()
|
# destroy()
|
||||||
update_status('Creating temporary resources...')
|
update_status('Creating temporary resources...')
|
||||||
create_temp(roop.globals.target_path)
|
create_temp(roop.globals.target_path)
|
||||||
# extract frames
|
# extract frames
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user