Spaces:
Running
on
Zero
Running
on
Zero
Upload genimage.py
Browse files- genimage.py +3 -3
genimage.py
CHANGED
@@ -38,17 +38,17 @@ def generate_image(prompt, neg_prompt):
|
|
38 |
"negative_prompt": neg_prompt,
|
39 |
"resolution": f"{1024} x {1024}",
|
40 |
"guidance_scale": 7.5,
|
41 |
-
"num_inference_steps":
|
42 |
"sampler": "Euler",
|
43 |
}
|
44 |
try:
|
45 |
images = pipe(
|
46 |
prompt=prompt + ", masterpiece, best quality, very aesthetic, absurdres",
|
47 |
-
negative_prompt=neg_prompt + ", lowres, (bad), text, error, fewer, extra, missing, worst quality, jpeg artifacts, low quality, watermark, unfinished, displeasing, oldest, early, chromatic aberration, signature, extra digits, artistic error, username, scan, [abstract], photo, deformed, disfigured, low contrast, photo, deformed, disfigured, low contrast",
|
48 |
width=1024,
|
49 |
height=1024,
|
50 |
guidance_scale=7.5,
|
51 |
-
num_inference_steps=
|
52 |
output_type="pil",
|
53 |
clip_skip=1,
|
54 |
).images
|
|
|
38 |
"negative_prompt": neg_prompt,
|
39 |
"resolution": f"{1024} x {1024}",
|
40 |
"guidance_scale": 7.5,
|
41 |
+
"num_inference_steps": 24,
|
42 |
"sampler": "Euler",
|
43 |
}
|
44 |
try:
|
45 |
images = pipe(
|
46 |
prompt=prompt + ", masterpiece, best quality, very aesthetic, absurdres",
|
47 |
+
negative_prompt=neg_prompt + ", bad hands, bad foots, lowres, (bad), text, error, fewer, extra, missing, worst quality, jpeg artifacts, low quality, watermark, unfinished, displeasing, oldest, early, chromatic aberration, signature, extra digits, artistic error, username, scan, [abstract], photo, deformed, disfigured, low contrast, photo, deformed, disfigured, low contrast",
|
48 |
width=1024,
|
49 |
height=1024,
|
50 |
guidance_scale=7.5,
|
51 |
+
num_inference_steps=24,
|
52 |
output_type="pil",
|
53 |
clip_skip=1,
|
54 |
).images
|