Staticaliza commited on
Commit
f4c9c2f
·
verified ·
1 Parent(s): 684d0fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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, digits, legs, feet, toes, arms, hands, fingers), (porn, nude, naked, nsfw)"
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 = 5
82
  elif model == "Anime":
83
  steps_set = 25
84
- guidance_set = 5
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 = 5
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