Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,7 +55,7 @@ SCHEDULER_MAP = {
|
|
| 55 |
}
|
| 56 |
|
| 57 |
pipe = WanImageToVideoPipeline.from_pretrained(
|
| 58 |
-
"TestOrganizationPleaseIgnore/WAMU_v2_WAN2.
|
| 59 |
torch_dtype=torch.bfloat16,
|
| 60 |
).to('cuda')
|
| 61 |
original_scheduler = copy.deepcopy(pipe.scheduler)
|
|
@@ -157,7 +157,7 @@ def get_inference_duration(
|
|
| 157 |
width, height = resized_image.size
|
| 158 |
factor = num_frames * width * height / BASE_FRAMES_HEIGHT_WIDTH
|
| 159 |
step_duration = BASE_STEP_DURATION * factor ** 1.5
|
| 160 |
-
return
|
| 161 |
|
| 162 |
|
| 163 |
@spaces.GPU(duration=get_inference_duration)
|
|
|
|
| 55 |
}
|
| 56 |
|
| 57 |
pipe = WanImageToVideoPipeline.from_pretrained(
|
| 58 |
+
"TestOrganizationPleaseIgnore/WAMU_v2_WAN2.2_I2V_LIGHTNING_preview3",
|
| 59 |
torch_dtype=torch.bfloat16,
|
| 60 |
).to('cuda')
|
| 61 |
original_scheduler = copy.deepcopy(pipe.scheduler)
|
|
|
|
| 157 |
width, height = resized_image.size
|
| 158 |
factor = num_frames * width * height / BASE_FRAMES_HEIGHT_WIDTH
|
| 159 |
step_duration = BASE_STEP_DURATION * factor ** 1.5
|
| 160 |
+
return 10 + int(steps) * step_duration
|
| 161 |
|
| 162 |
|
| 163 |
@spaces.GPU(duration=get_inference_duration)
|