Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -285,14 +285,13 @@ def get_inference_duration(
|
|
| 285 |
gen_time = int(steps) * step_duration
|
| 286 |
print(gen_time)
|
| 287 |
if guidance_scale > 1:
|
| 288 |
-
gen_time = gen_time * 1.
|
| 289 |
if guidance_scale_2 > 1:
|
| 290 |
-
gen_time = gen_time * 1.
|
| 291 |
|
| 292 |
if frame_multiplier > 1:
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
inter_time = duration_seconds
|
| 296 |
print(inter_time)
|
| 297 |
gen_time += inter_time
|
| 298 |
|
|
|
|
| 285 |
gen_time = int(steps) * step_duration
|
| 286 |
print(gen_time)
|
| 287 |
if guidance_scale > 1:
|
| 288 |
+
gen_time = gen_time * 1.55
|
| 289 |
if guidance_scale_2 > 1:
|
| 290 |
+
gen_time = gen_time * 1.55
|
| 291 |
|
| 292 |
if frame_multiplier > 1:
|
| 293 |
+
total_out_frames = (num_frames * frame_multiplier) - num_frames
|
| 294 |
+
inter_time = (total_out_frames * 0.02)
|
|
|
|
| 295 |
print(inter_time)
|
| 296 |
gen_time += inter_time
|
| 297 |
|