Spaces:
Running
on
Zero
Running
on
Zero
alfredplpl
commited on
Commit
•
0ea485b
1
Parent(s):
9e2aee6
Update app.py
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ def auto_prompt_correction(prompt_ui,neg_prompt_ui,disable_auto_prompt_correctio
|
|
126 |
|
127 |
if(prompt=="" and neg_prompt==""):
|
128 |
prompt=f"{style}, masterpiece, portrait, a girl with flowers, good pupil, detailed"
|
129 |
-
neg_prompt=f"{nfixer},(((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
|
130 |
return prompt, neg_prompt
|
131 |
|
132 |
splited_prompt=prompt.replace(","," ").replace("_"," ").split(" ")
|
@@ -135,14 +135,14 @@ def auto_prompt_correction(prompt_ui,neg_prompt_ui,disable_auto_prompt_correctio
|
|
135 |
for word in human_words:
|
136 |
if( word in splited_prompt):
|
137 |
prompt=f"{style}, masterpiece, {prompt}, good pupil, detailed"
|
138 |
-
neg_prompt=f"{nfixer},(((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
|
139 |
return prompt, neg_prompt
|
140 |
|
141 |
animal_words=["cat","dog","bird"]
|
142 |
for word in animal_words:
|
143 |
if( word in splited_prompt):
|
144 |
prompt=f"{style}, a {prompt}, 4k, detailed"
|
145 |
-
neg_prompt=f"{nfixer}, girl, (((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
|
146 |
return prompt, neg_prompt
|
147 |
|
148 |
background_words=["mount fuji","mt. fuji","building", "buildings", "tokyo", "kyoto", "nara", "shibuya", "shinjuku"]
|
|
|
126 |
|
127 |
if(prompt=="" and neg_prompt==""):
|
128 |
prompt=f"{style}, masterpiece, portrait, a girl with flowers, good pupil, detailed"
|
129 |
+
neg_prompt=f"{nfixer},(((deformed))), blurry, ((((bad anatomy)))),3d, cg, text , 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"
|
130 |
return prompt, neg_prompt
|
131 |
|
132 |
splited_prompt=prompt.replace(","," ").replace("_"," ").split(" ")
|
|
|
135 |
for word in human_words:
|
136 |
if( word in splited_prompt):
|
137 |
prompt=f"{style}, masterpiece, {prompt}, good pupil, detailed"
|
138 |
+
neg_prompt=f"{nfixer},(((deformed))), blurry, ((((bad anatomy)))), {neg_prompt}, 3d, cg, text, 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"
|
139 |
return prompt, neg_prompt
|
140 |
|
141 |
animal_words=["cat","dog","bird"]
|
142 |
for word in animal_words:
|
143 |
if( word in splited_prompt):
|
144 |
prompt=f"{style}, a {prompt}, 4k, detailed"
|
145 |
+
neg_prompt=f"{nfixer}, girl, (((deformed))), blurry, ((((bad anatomy)))), {neg_prompt}, 3d, cg, text, 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"
|
146 |
return prompt, neg_prompt
|
147 |
|
148 |
background_words=["mount fuji","mt. fuji","building", "buildings", "tokyo", "kyoto", "nara", "shibuya", "shinjuku"]
|