hsuwill000
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,8 @@ examples = [
|
|
30 |
"((colofrul:1.7)),((best quality)), ((masterpiece)), ((ultra-detailed)), (illustration), (detailed light), (an extremely delicate and beautiful),incredibly_absurdres,(glowing),(1girl:1.7),solo,a beautiful girl,(((cowboy shot))),standding,((Hosiery)),((beautiful off-shoulder lace-trimmed layered strapless dress+white stocking):1.25),((Belts)),(leg loops),((Hosiery)),((flower headdress)),((long white hair)),(((beautiful eyes))),BREAK,((english text)),(flower:1.35),(garden),(((border:1.75))),",
|
31 |
]
|
32 |
|
33 |
-
|
34 |
-
|
35 |
pipe = OVStableDiffusionPipeline.from_pretrained(
|
36 |
model_id,
|
37 |
compile=False,
|
@@ -40,6 +40,10 @@ pipe = OVStableDiffusionPipeline.from_pretrained(
|
|
40 |
safety_checker=None,
|
41 |
use_safetensors=False,
|
42 |
)
|
|
|
|
|
|
|
|
|
43 |
"""
|
44 |
taesd_dir = snapshot_download(repo_id="deinferno/taesd-openvino")
|
45 |
|
@@ -62,7 +66,6 @@ negative_prompt = "Easy Negative, worst quality, low quality, normal quality, lo
|
|
62 |
def infer(prompt, negative_prompt):
|
63 |
image = pipe(
|
64 |
prompt=prompt,
|
65 |
-
scheduler=scheduler,
|
66 |
negative_prompt=negative_prompt,
|
67 |
width=WIDTH,
|
68 |
height=HIGH,
|
|
|
30 |
"((colofrul:1.7)),((best quality)), ((masterpiece)), ((ultra-detailed)), (illustration), (detailed light), (an extremely delicate and beautiful),incredibly_absurdres,(glowing),(1girl:1.7),solo,a beautiful girl,(((cowboy shot))),standding,((Hosiery)),((beautiful off-shoulder lace-trimmed layered strapless dress+white stocking):1.25),((Belts)),(leg loops),((Hosiery)),((flower headdress)),((long white hair)),(((beautiful eyes))),BREAK,((english text)),(flower:1.35),(garden),(((border:1.75))),",
|
31 |
]
|
32 |
|
33 |
+
|
34 |
+
|
35 |
pipe = OVStableDiffusionPipeline.from_pretrained(
|
36 |
model_id,
|
37 |
compile=False,
|
|
|
40 |
safety_checker=None,
|
41 |
use_safetensors=False,
|
42 |
)
|
43 |
+
|
44 |
+
pipe.scheduler = KDPM2DiscreteScheduler.from_config(pipe.scheduler.config)
|
45 |
+
|
46 |
+
|
47 |
"""
|
48 |
taesd_dir = snapshot_download(repo_id="deinferno/taesd-openvino")
|
49 |
|
|
|
66 |
def infer(prompt, negative_prompt):
|
67 |
image = pipe(
|
68 |
prompt=prompt,
|
|
|
69 |
negative_prompt=negative_prompt,
|
70 |
width=WIDTH,
|
71 |
height=HIGH,
|