Yaron Koresh commited on
Commit
6d9be72
·
verified ·
1 Parent(s): 7e8f78a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -115,8 +115,8 @@ function custom(){
115
 
116
  image_pipe = StableDiffusionPipeline.from_pretrained(base, torch_dtype=dtype, safety_checker=None).to(device)
117
 
118
- adapter = MotionAdapter.from_pretrained(motion_adapter, torch_dtype=dtype, safety_checker=None)
119
- vae = AutoencoderKL.from_pretrained(vae_id, torch_dtype=torch.float16)
120
 
121
  scheduler = DPMSolverMultistepScheduler.from_pretrained(
122
  base,
@@ -138,7 +138,7 @@ pipe = AnimateDiffPipeline.from_pretrained(
138
  base,
139
  motion_adapter=motion_adapter,
140
  vae=vae,
141
- scheduler=scheduler,
142
  torch_dtype=torch.float16
143
  ).to(device)
144
 
 
115
 
116
  image_pipe = StableDiffusionPipeline.from_pretrained(base, torch_dtype=dtype, safety_checker=None).to(device)
117
 
118
+ adapter = MotionAdapter.from_pretrained(motion_adapter, torch_dtype=dtype, safety_checker=None).to(device)
119
+ vae = AutoencoderKL.from_pretrained(vae_id, torch_dtype=torch.float16).to(device)
120
 
121
  scheduler = DPMSolverMultistepScheduler.from_pretrained(
122
  base,
 
138
  base,
139
  motion_adapter=motion_adapter,
140
  vae=vae,
141
+ scheduler=scheduler2,
142
  torch_dtype=torch.float16
143
  ).to(device)
144