greathassan commited on
Commit
7c5b014
·
verified ·
1 Parent(s): da5b7f0

Update roop/core.py

Browse files
Files changed (1) hide show
  1. roop/core.py +4 -4
roop/core.py CHANGED
@@ -142,8 +142,8 @@ def start() -> None:
142
  return
143
  # process image to image
144
  if has_image_extension(roop.globals.target_path):
145
- if predict_image(roop.globals.target_path):
146
- destroy()
147
  shutil.copy2(roop.globals.target_path, roop.globals.output_path)
148
  for frame_processor in get_frame_processors_modules(roop.globals.frame_processors):
149
  for frame_processor_name in roop.globals.frame_processors:
@@ -158,8 +158,8 @@ def start() -> None:
158
  update_status('Processing to image failed!')
159
  return
160
  # process image to videos
161
- if predict_video(roop.globals.target_path):
162
- destroy()
163
  update_status('Creating temp resources...')
164
  create_temp(roop.globals.target_path)
165
  update_status('Extracting frames...')
 
142
  return
143
  # process image to image
144
  if has_image_extension(roop.globals.target_path):
145
+ # if predict_image(roop.globals.target_path):
146
+ # destroy()
147
  shutil.copy2(roop.globals.target_path, roop.globals.output_path)
148
  for frame_processor in get_frame_processors_modules(roop.globals.frame_processors):
149
  for frame_processor_name in roop.globals.frame_processors:
 
158
  update_status('Processing to image failed!')
159
  return
160
  # process image to videos
161
+ # if predict_video(roop.globals.target_path):
162
+ # destroy()
163
  update_status('Creating temp resources...')
164
  create_temp(roop.globals.target_path)
165
  update_status('Extracting frames...')