Spaces:
Running
Running
nalin0503
commited on
Commit
·
d7a3370
1
Parent(s):
0e62b40
fix miliseconds issue... conversion 0.1 to 100ms for diffmorpher
Browse files
app.py
CHANGED
|
@@ -286,6 +286,9 @@ def main():
|
|
| 286 |
os.makedirs(output_dir, exist_ok=True)
|
| 287 |
os.makedirs(film_output_dir, exist_ok=True)
|
| 288 |
|
|
|
|
|
|
|
|
|
|
| 289 |
# Build the CLI command. Note: numeric parameters are converted to strings for CLI compatibility.
|
| 290 |
cmd = [
|
| 291 |
sys.executable, "run_morphing.py",
|
|
@@ -297,7 +300,7 @@ def main():
|
|
| 297 |
"--output_path", output_dir,
|
| 298 |
"--film_output_folder", film_output_dir,
|
| 299 |
"--num_frames", str(num_frames),
|
| 300 |
-
"--duration", str(
|
| 301 |
] + (["--save_inter"] if use_film else []) # to ensure we have intermediate folder for FILM
|
| 302 |
if enable_lcm_lora:
|
| 303 |
cmd.append("--use_lcm")
|
|
|
|
| 286 |
os.makedirs(output_dir, exist_ok=True)
|
| 287 |
os.makedirs(film_output_dir, exist_ok=True)
|
| 288 |
|
| 289 |
+
# convert seconds to miliseconds...
|
| 290 |
+
duration_ms = int(keyframe_duration * 1000)
|
| 291 |
+
|
| 292 |
# Build the CLI command. Note: numeric parameters are converted to strings for CLI compatibility.
|
| 293 |
cmd = [
|
| 294 |
sys.executable, "run_morphing.py",
|
|
|
|
| 300 |
"--output_path", output_dir,
|
| 301 |
"--film_output_folder", film_output_dir,
|
| 302 |
"--num_frames", str(num_frames),
|
| 303 |
+
"--duration", str(duration_ms)
|
| 304 |
] + (["--save_inter"] if use_film else []) # to ensure we have intermediate folder for FILM
|
| 305 |
if enable_lcm_lora:
|
| 306 |
cmd.append("--use_lcm")
|