alfredplpl
commited on
Commit
·
7d1ffa7
1
Parent(s):
73627b7
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def auto_prompt_correction(prompt_ui,neg_prompt_ui,cool_japan_type_ui):
|
|
74 |
prompt=prompt.lower()
|
75 |
neg_prompt=neg_prompt.lower()
|
76 |
if(prompt=="" and neg_prompt==""):
|
77 |
-
prompt=f"{cool_japan_type}, a portrait of a girl, 4k, detailed"
|
78 |
neg_prompt=f"(((deformed))), blurry, ((((bad anatomy)))), {neg_prompt}, 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"
|
79 |
|
80 |
splited_prompt=prompt.replace(","," ").replace("_"," ").split(" ")
|
@@ -85,7 +85,7 @@ def auto_prompt_correction(prompt_ui,neg_prompt_ui,cool_japan_type_ui):
|
|
85 |
human_words=["girl","maid","maids","female","woman","girls","a couple of girls","women","boy","boys","a couple of boys","male","man","men","guy","guys"]
|
86 |
for word in human_words:
|
87 |
if( word in splited_prompt):
|
88 |
-
prompt=f"{cool_japan_type}, {prompt}, 4k, detailed"
|
89 |
neg_prompt=f"(((deformed))), blurry, ((((bad anatomy)))), {neg_prompt}, 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"
|
90 |
|
91 |
animal_words=["cat","dog","bird"]
|
|
|
74 |
prompt=prompt.lower()
|
75 |
neg_prompt=neg_prompt.lower()
|
76 |
if(prompt=="" and neg_prompt==""):
|
77 |
+
prompt=f"{cool_japan_type}, masterpiece, a portrait of a girl, good pupil, 4k, detailed"
|
78 |
neg_prompt=f"(((deformed))), blurry, ((((bad anatomy)))), {neg_prompt}, 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"
|
79 |
|
80 |
splited_prompt=prompt.replace(","," ").replace("_"," ").split(" ")
|
|
|
85 |
human_words=["girl","maid","maids","female","woman","girls","a couple of girls","women","boy","boys","a couple of boys","male","man","men","guy","guys"]
|
86 |
for word in human_words:
|
87 |
if( word in splited_prompt):
|
88 |
+
prompt=f"{cool_japan_type}, masterpiece, {prompt}, good pupil, 4k, detailed"
|
89 |
neg_prompt=f"(((deformed))), blurry, ((((bad anatomy)))), {neg_prompt}, 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"
|
90 |
|
91 |
animal_words=["cat","dog","bird"]
|