Spaces:
Sleeping
Sleeping
hsuwill000
commited on
Commit
•
6ac807a
1
Parent(s):
d02e94c
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ from diffusers import EulerAncestralDiscreteScheduler, LCMScheduler
|
|
15 |
|
16 |
|
17 |
model_id = "hsuwill000/anything-v5-openvino"
|
18 |
-
adapter_id = "latent-consistency/lcm-lora-sdv1-5"
|
19 |
|
20 |
#1024*512 記憶體不足
|
21 |
HIGH=512
|
@@ -35,8 +35,8 @@ pipe = OVStableDiffusionPipeline.from_pretrained(
|
|
35 |
use_safetensors=False,
|
36 |
)
|
37 |
print(pipe.scheduler.compatibles)
|
38 |
-
|
39 |
-
pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
|
40 |
|
41 |
pipe.load_lora_weights(adapter_id)
|
42 |
pipe.fuse_lora()
|
|
|
15 |
|
16 |
|
17 |
model_id = "hsuwill000/anything-v5-openvino"
|
18 |
+
#adapter_id = "latent-consistency/lcm-lora-sdv1-5"
|
19 |
|
20 |
#1024*512 記憶體不足
|
21 |
HIGH=512
|
|
|
35 |
use_safetensors=False,
|
36 |
)
|
37 |
print(pipe.scheduler.compatibles)
|
38 |
+
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
39 |
+
#pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
|
40 |
|
41 |
pipe.load_lora_weights(adapter_id)
|
42 |
pipe.fuse_lora()
|