ford442 commited on
Commit
11dc7fe
·
1 Parent(s): 6216561

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -147,6 +147,8 @@ models = {key: load_and_prepare_model(value) for key, value in MODEL_OPTIONS.ite
147
 
148
  MAX_SEED = np.iinfo(np.int32).max
149
 
 
 
150
  def upload_to_ftp(filename):
151
  try:
152
  transport = paramiko.Transport((FTP_HOST, 22))
@@ -195,6 +197,7 @@ def generate_30(
195
  options = {
196
  "prompt": [prompt] * num_images,
197
  "negative_prompt": [negative_prompt] * num_images if use_negative_prompt else None,
 
198
  "width": width,
199
  "height": height,
200
  "guidance_scale": guidance_scale,
@@ -441,7 +444,7 @@ with gr.Blocks(theme=gr.themes.Origin(),css=css) as demo:
441
  max_lines=5,
442
  lines=4,
443
  placeholder="Enter a negative prompt",
444
- value="ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, bad anatomy, watermark, signature, cut off, low contrast, underexposed, overexposed, bad art, beginner, amateur, distorted face",
445
  visible=True,
446
  )
447
  seed = gr.Slider(
 
147
 
148
  MAX_SEED = np.iinfo(np.int32).max
149
 
150
+ neg_prompt_2 = " 'unrealistic skin','unattractive face':1.3, 'low quality':1.1, ('dull color scheme', 'dull colors', 'digital noise':1.2),'amateurish', 'poorly drawn face':1.3, 'poorly drawn', 'distorted face' "
151
+
152
  def upload_to_ftp(filename):
153
  try:
154
  transport = paramiko.Transport((FTP_HOST, 22))
 
197
  options = {
198
  "prompt": [prompt] * num_images,
199
  "negative_prompt": [negative_prompt] * num_images if use_negative_prompt else None,
200
+ "negative_prompt_2": [neg_prompt_2] * num_images if use_negative_prompt else None,
201
  "width": width,
202
  "height": height,
203
  "guidance_scale": guidance_scale,
 
444
  max_lines=5,
445
  lines=4,
446
  placeholder="Enter a negative prompt",
447
+ value="('deformed', 'distorted', 'disfigured':1.3), 'poorly drawn', 'bad anatomy', 'wrong anatomy', 'extra limb', 'missing limb', 'floating limbs', 'poorly drawn hands', 'poorly drawn feet', 'poorly drawn face':1.3, 'out of frame', 'extra limbs', 'bad anatomy', 'bad art', 'beginner', 'distorted face','amateur'",
448
  visible=True,
449
  )
450
  seed = gr.Slider(