hsuwill000
commited on
Commit
•
210813d
1
Parent(s):
c6b6ad5
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,10 @@ import torch
|
|
7 |
from huggingface_hub import snapshot_download
|
8 |
import openvino.runtime as ov
|
9 |
from typing import Optional, Dict
|
10 |
-
from diffusers import
|
|
|
|
|
|
|
11 |
|
12 |
|
13 |
model_id = "hsuwill000/anything-v5-openvino"
|
@@ -29,7 +32,8 @@ pipe = OVStableDiffusionPipeline.from_pretrained(
|
|
29 |
safety_checker=None,
|
30 |
use_safetensors=False,
|
31 |
)
|
32 |
-
|
|
|
33 |
|
34 |
|
35 |
|
|
|
7 |
from huggingface_hub import snapshot_download
|
8 |
import openvino.runtime as ov
|
9 |
from typing import Optional, Dict
|
10 |
+
from diffusers import EulerAncestralDiscreteScheduler
|
11 |
+
|
12 |
+
#LCMScheduler 產生垃圾
|
13 |
+
#EulerDiscreteScheduler 尚可
|
14 |
|
15 |
|
16 |
model_id = "hsuwill000/anything-v5-openvino"
|
|
|
32 |
safety_checker=None,
|
33 |
use_safetensors=False,
|
34 |
)
|
35 |
+
pipeline.scheduler.compatibles()
|
36 |
+
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
37 |
|
38 |
|
39 |
|