alfredplpl commited on
Commit
cc439fc
1 Parent(s): f68ac61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -55,7 +55,9 @@ def auto_prompt_correction(prompt_ui,neg_prompt_ui):
55
  prompt="anime, a portrait of a girl, 4k, detailed"
56
  neg_prompt=" (((deformed))), blurry, ((((bad anatomy)))), bad pupil, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands), bad hands, fused fingers, messy drawing, broken legs censor, low quality, ((mutated hands and fingers:1.5), (long body :1.3), (mutation, poorly drawn :1.2), ((bad eyes)), ui, error, missing fingers, fused fingers, one hand with more than 5 fingers, one hand with less than 5 fingers, one hand with more than 5 digit, one hand with less than 5 digit, extra digit, fewer digits, fused digit, missing digit, bad digit, liquid digit, long body, uncoordinated body, unnatural body, lowres, jpeg artifacts, 2d, 3d, cg, text"
57
 
58
- splited_prompt=prompt.replace(","," ").split(" ")
 
 
59
  human_words=["girl","maid","female","woman","boy","male","man","guy"]
60
  for word in human_words:
61
  if( word in splited_prompt):
 
55
  prompt="anime, a portrait of a girl, 4k, detailed"
56
  neg_prompt=" (((deformed))), blurry, ((((bad anatomy)))), bad pupil, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands), bad hands, fused fingers, messy drawing, broken legs censor, low quality, ((mutated hands and fingers:1.5), (long body :1.3), (mutation, poorly drawn :1.2), ((bad eyes)), ui, error, missing fingers, fused fingers, one hand with more than 5 fingers, one hand with less than 5 fingers, one hand with more than 5 digit, one hand with less than 5 digit, extra digit, fewer digits, fused digit, missing digit, bad digit, liquid digit, long body, uncoordinated body, unnatural body, lowres, jpeg artifacts, 2d, 3d, cg, text"
57
 
58
+ splited_prompt=prompt.replace(","," ").replace("_"," ").split(" ")
59
+ splited_prompt=["girl" if p=="1girl" or p=="solo" else p for p in splited_prompt]
60
+ splited_prompt=["boy" if p=="1boy" else p for p in splited_prompt]
61
  human_words=["girl","maid","female","woman","boy","male","man","guy"]
62
  for word in human_words:
63
  if( word in splited_prompt):