Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ print(f"[SYSTEM] | Using {DEVICE} type compute device.")
|
|
| 19 |
# Variables
|
| 20 |
MAX_SEED = 9007199254740991
|
| 21 |
DEFAULT_INPUT = ""
|
| 22 |
-
DEFAULT_NEGATIVE_INPUT = "(bad, ugly, amputation, abstract, anatomy, blur, blurry, deformed, distorted, disfigured, disconnected, mutation, mutated, low quality), unfinished, title, text, signature, watermark, (limbs,
|
| 23 |
DEFAULT_MODEL = "Default"
|
| 24 |
DEFAULT_HEIGHT = 1024
|
| 25 |
DEFAULT_WIDTH = 1024
|
|
@@ -78,10 +78,10 @@ def generate(input=DEFAULT_INPUT, filter_input="", negative_input=DEFAULT_NEGATI
|
|
| 78 |
|
| 79 |
if model == "Realistic":
|
| 80 |
steps_set = 25
|
| 81 |
-
guidance_set =
|
| 82 |
elif model == "Anime":
|
| 83 |
steps_set = 25
|
| 84 |
-
guidance_set =
|
| 85 |
elif model == "Pixel":
|
| 86 |
steps_set = 15
|
| 87 |
guidance_set = 1.5
|
|
@@ -90,7 +90,7 @@ def generate(input=DEFAULT_INPUT, filter_input="", negative_input=DEFAULT_NEGATI
|
|
| 90 |
guidance_set = 5
|
| 91 |
else:
|
| 92 |
steps_set = 25
|
| 93 |
-
guidance_set =
|
| 94 |
|
| 95 |
if not steps:
|
| 96 |
steps = steps_set
|
|
|
|
| 19 |
# Variables
|
| 20 |
MAX_SEED = 9007199254740991
|
| 21 |
DEFAULT_INPUT = ""
|
| 22 |
+
DEFAULT_NEGATIVE_INPUT = "(bad, ugly, amputation, abstract, anatomy, blur, blurry, deformed, distorted, disfigured, disconnected, mutation, mutated, low quality, lowres), unfinished, title, text, signature, watermark, (limbs, legs, feet, arms, hands), (porn, nude, naked, nsfw)"
|
| 23 |
DEFAULT_MODEL = "Default"
|
| 24 |
DEFAULT_HEIGHT = 1024
|
| 25 |
DEFAULT_WIDTH = 1024
|
|
|
|
| 78 |
|
| 79 |
if model == "Realistic":
|
| 80 |
steps_set = 25
|
| 81 |
+
guidance_set = 7
|
| 82 |
elif model == "Anime":
|
| 83 |
steps_set = 25
|
| 84 |
+
guidance_set = 7
|
| 85 |
elif model == "Pixel":
|
| 86 |
steps_set = 15
|
| 87 |
guidance_set = 1.5
|
|
|
|
| 90 |
guidance_set = 5
|
| 91 |
else:
|
| 92 |
steps_set = 25
|
| 93 |
+
guidance_set = 7
|
| 94 |
|
| 95 |
if not steps:
|
| 96 |
steps = steps_set
|