Update core.py

This commit is contained in:
niflheim12 2024-04-28 12:58:49 +05:30 committed by GitHub
parent f9fe11a8a9
commit dd4a1ddc31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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