r3gm commited on
Commit
bc3a9a6
·
verified ·
1 Parent(s): de38775

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,7 +55,7 @@ SCHEDULER_MAP = {
55
  }
56
 
57
  pipe = WanImageToVideoPipeline.from_pretrained(
58
- "TestOrganizationPleaseIgnore/WAMU_v2_WAN2.2_I2V_LIGHTNING_preview4",
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 5 + int(steps) * step_duration
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)