alfredplpl commited on
Commit
bd1a442
1 Parent(s): 63e43b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -79,9 +79,10 @@ def auto_prompt_correction(prompt_ui,neg_prompt_ui,disable_auto_prompt_correctio
79
  prompt="anime, masterpiece, portrait, a girl with flowers, good pupil, 4k, detailed"
80
  neg_prompt=f"(((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, 3d, cg, text"
81
  return prompt, neg_prompt
82
-
83
  splited_prompt=prompt.replace(","," ").replace("_"," ").split(" ")
84
- human_words=["girl","maid","maids","female","woman","girls","a couple of girls","women","boy","boys","a couple of boys","male","man","men","guy","guys"]
 
85
  for word in human_words:
86
  if( word in splited_prompt):
87
  prompt=f"anime, masterpiece, {prompt}, good pupil, 4k, detailed"
 
79
  prompt="anime, masterpiece, portrait, a girl with flowers, good pupil, 4k, detailed"
80
  neg_prompt=f"(((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, 3d, cg, text"
81
  return prompt, neg_prompt
82
+
83
  splited_prompt=prompt.replace(","," ").replace("_"," ").split(" ")
84
+
85
+ human_words=["girl","maid","maids","female","woman","girls","2girls","3girls","4girls","5girls","a couple of girls","women","boy","boys","a couple of boys","2boys","male","man","men","guy","guys"]
86
  for word in human_words:
87
  if( word in splited_prompt):
88
  prompt=f"anime, masterpiece, {prompt}, good pupil, 4k, detailed"