Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -109,10 +109,9 @@ function custom(){
|
|
109 |
# torch pipes
|
110 |
|
111 |
image_pipe = StableDiffusionPipeline.from_pretrained(base, torch_dtype=dtype, safety_checker=None).to(device)
|
112 |
-
pipe = AnimateDiffPipeline.from_pretrained(base, torch_dtype=dtype, motion_adapter=adapter
|
113 |
pipe.scheduler = EulerAncestralDiscreteScheduler(
|
114 |
base,
|
115 |
-
subfolder="scheduler",
|
116 |
beta_schedule="linear",
|
117 |
)
|
118 |
pipe.load_ip_adapter("h94/IP-Adapter", subfolder="models", weight_name="ip-adapter-plus_sd15.bin")
|
|
|
109 |
# torch pipes
|
110 |
|
111 |
image_pipe = StableDiffusionPipeline.from_pretrained(base, torch_dtype=dtype, safety_checker=None).to(device)
|
112 |
+
pipe = AnimateDiffPipeline.from_pretrained(base, torch_dtype=dtype, motion_adapter=adapter).to(device)
|
113 |
pipe.scheduler = EulerAncestralDiscreteScheduler(
|
114 |
base,
|
|
|
115 |
beta_schedule="linear",
|
116 |
)
|
117 |
pipe.load_ip_adapter("h94/IP-Adapter", subfolder="models", weight_name="ip-adapter-plus_sd15.bin")
|