nalin0503 commited on
Commit
d45367b
·
1 Parent(s): 3fe375f
Files changed (1) hide show
  1. run_morphing.py +0 -5
run_morphing.py CHANGED
@@ -139,8 +139,6 @@ def run_diffmorpher(args):
139
  cmd.append("--use_reschedule")
140
  if args.fix_lora_value is not None:
141
  cmd += ["--fix_lora_value", str(args.fix_lora_value)]
142
- if args.save_inter:
143
- cmd.append("--save_inter")
144
  if args.no_lora:
145
  cmd.append("--no_lora")
146
  # ---- Always add --save_inter to ensure keyframes are saved ----
@@ -164,7 +162,6 @@ def create_simple_video_from_keyframes(keyframes_folder, output_folder, fps=40):
164
  """
165
  import cv2
166
  from glob import glob
167
- import os
168
  from datetime import datetime
169
 
170
  os.makedirs(output_folder, exist_ok=True)
@@ -205,7 +202,6 @@ def main():
205
  # 3) If user wants to use FILM, perform high-quality interpolation on the keyframes
206
  if args.use_film:
207
  print("[INFO] Running FILM to enhance the keyframes...")
208
-
209
  start_film_time = time.time()
210
  # from FILM.py:
211
  process_keyframes(
@@ -216,7 +212,6 @@ def main():
216
  )
217
  end_film_time = time.time()
218
  print(f"[INFO] FILM interpolation completed in {end_film_time - start_film_time:.2f} seconds.")
219
-
220
  else:
221
  # 4) If user does NOT want FILM, create a simple .mp4 from the keyframes
222
  print("[INFO] Skipping FILM interpolation. Creating a basic video from DiffMorpher keyframes...")
 
139
  cmd.append("--use_reschedule")
140
  if args.fix_lora_value is not None:
141
  cmd += ["--fix_lora_value", str(args.fix_lora_value)]
 
 
142
  if args.no_lora:
143
  cmd.append("--no_lora")
144
  # ---- Always add --save_inter to ensure keyframes are saved ----
 
162
  """
163
  import cv2
164
  from glob import glob
 
165
  from datetime import datetime
166
 
167
  os.makedirs(output_folder, exist_ok=True)
 
202
  # 3) If user wants to use FILM, perform high-quality interpolation on the keyframes
203
  if args.use_film:
204
  print("[INFO] Running FILM to enhance the keyframes...")
 
205
  start_film_time = time.time()
206
  # from FILM.py:
207
  process_keyframes(
 
212
  )
213
  end_film_time = time.time()
214
  print(f"[INFO] FILM interpolation completed in {end_film_time - start_film_time:.2f} seconds.")
 
215
  else:
216
  # 4) If user does NOT want FILM, create a simple .mp4 from the keyframes
217
  print("[INFO] Skipping FILM interpolation. Creating a basic video from DiffMorpher keyframes...")