Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
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=
|
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 |
|