nalin0503 commited on
Commit
3fe375f
·
1 Parent(s): 64a9e02

--save_inter fix

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. run_morphing.py +2 -12
app.py CHANGED
@@ -312,7 +312,7 @@ def main():
312
  "--film_output_folder", film_output_dir,
313
  "--num_frames", str(num_frames),
314
  "--duration", str(duration_ms)
315
- ] + (["--save_inter"] if use_film else [])
316
  if enable_lcm_lora:
317
  cmd.append("--use_lcm")
318
  if use_adain:
 
312
  "--film_output_folder", film_output_dir,
313
  "--num_frames", str(num_frames),
314
  "--duration", str(duration_ms)
315
+ ]
316
  if enable_lcm_lora:
317
  cmd.append("--use_lcm")
318
  if use_adain:
run_morphing.py CHANGED
@@ -9,18 +9,6 @@ from FILM import process_keyframes
9
  def parse_arguments():
10
  parser = argparse.ArgumentParser(
11
  description="Orchestrate DiffMorpher || LCM-LoRa || LCM, and FILM for smooth morphing between two images.")
12
-
13
- # ------------------- KEYFRAME METHOD SELECTION -------------------
14
- # TODO multiple methods not supported yet
15
- # parser.add_argument(
16
- # "--keyframe_method", type=str, default="diffmorpher",
17
- # choices=["diffmorpher", "lcm_lora", "diffmorpher_lcm"],
18
- # help="Choose which method to use for keyframe generation."
19
- # )
20
- # i think this would be to select the models. so theres
21
- # stable diffusion 2-1 (without lcm)
22
- # stable diffusion 1-5 (has lcm support)
23
- # dreamshaper 7, fine-tuned 1-5, more glam, (has lcm support)
24
 
25
  # ------------------- DIFFMORPHER ARGS -------------------
26
  parser.add_argument(
@@ -155,6 +143,8 @@ def run_diffmorpher(args):
155
  cmd.append("--save_inter")
156
  if args.no_lora:
157
  cmd.append("--no_lora")
 
 
158
  # ---- Add LCM-LoRA flag if set ----
159
  if args.use_lcm:
160
  cmd.append("--use_lcm")
 
9
  def parse_arguments():
10
  parser = argparse.ArgumentParser(
11
  description="Orchestrate DiffMorpher || LCM-LoRa || LCM, and FILM for smooth morphing between two images.")
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  # ------------------- DIFFMORPHER ARGS -------------------
14
  parser.add_argument(
 
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 ----
147
+ cmd.append("--save_inter")
148
  # ---- Add LCM-LoRA flag if set ----
149
  if args.use_lcm:
150
  cmd.append("--use_lcm")