Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -141,9 +141,9 @@ def run_inference(prompt, video_path, condition, video_length, seed, steps):
|
|
| 141 |
|
| 142 |
print(f"RUNNING INFERENCE ...")
|
| 143 |
if video_length > 12:
|
| 144 |
-
command = f"python inference.py --prompt '{prompt}' --inference_steps {steps} --condition '{condition}' --video_path '{normalized}' --output_path '{output_path}' --temp_chunk_path 'result' --width 512 --height 512 --fps {target_fps} --seed {seed} --video_length {video_length} --smoother_steps
|
| 145 |
else:
|
| 146 |
-
command = f"python inference.py --prompt '{prompt}' --inference_steps {steps} --condition '{condition}' --video_path '{normalized}' --output_path '{output_path}' --temp_chunk_path 'result' --width 512 --height 512 --fps {target_fps} --seed {seed} --video_length {video_length} --smoother_steps
|
| 147 |
try:
|
| 148 |
subprocess.run(command, shell=True)
|
| 149 |
|
|
|
|
| 141 |
|
| 142 |
print(f"RUNNING INFERENCE ...")
|
| 143 |
if video_length > 12:
|
| 144 |
+
command = f"python inference.py --prompt '{prompt}' --inference_steps {steps} --condition '{condition}' --video_path '{normalized}' --output_path '{output_path}' --temp_chunk_path 'result' --width 512 --height 512 --fps {target_fps} --seed {seed} --video_length {video_length} --smoother_steps 19 20 --is_long_video"
|
| 145 |
else:
|
| 146 |
+
command = f"python inference.py --prompt '{prompt}' --inference_steps {steps} --condition '{condition}' --video_path '{normalized}' --output_path '{output_path}' --temp_chunk_path 'result' --width 512 --height 512 --fps {target_fps} --seed {seed} --video_length {video_length} --smoother_steps 19 20"
|
| 147 |
try:
|
| 148 |
subprocess.run(command, shell=True)
|
| 149 |
|