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