Upload 4 files
Browse files
.gitattributes
CHANGED
@@ -120,3 +120,4 @@ Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0201_testv1.exe filte
|
|
120 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0203_testv2.exe filter=lfs diff=lfs merge=lfs -text
|
121 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/WEBUIA_0211.exe filter=lfs diff=lfs merge=lfs -text
|
122 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0211_testv1.exe filter=lfs diff=lfs merge=lfs -text
|
|
|
|
120 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0203_testv2.exe filter=lfs diff=lfs merge=lfs -text
|
121 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/WEBUIA_0211.exe filter=lfs diff=lfs merge=lfs -text
|
122 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0211_testv1.exe filter=lfs diff=lfs merge=lfs -text
|
123 |
+
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0211_testv2.exe filter=lfs diff=lfs merge=lfs -text
|
Danbooru Prompt Selector/TEST2024/NAIA_0211_testv2.exe
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:945320b8fdf9590f0b594a34287ce857130b9a26ad6381e2aa51d64781f9edc2
|
3 |
+
size 838005634
|
Danbooru Prompt Selector/TEST2024/NAIA_0211_testv2.py
ADDED
The diff for this file is too large to render.
See raw diff
|
|
Danbooru Prompt Selector/TEST2024/NAIA_generation.py
CHANGED
@@ -272,7 +272,7 @@ def generate(gen_request):
|
|
272 |
"sampler": gen_request["sampler"],
|
273 |
"steps": 28 if gen_request["type"]!="upper" else gen_request["steps"],
|
274 |
"scale": gen_request["scale"],
|
275 |
-
"uncond_scale":
|
276 |
"negative_prompt": gen_request["negative"],
|
277 |
"sm" : gen_request["sema"],
|
278 |
"sm_dyn" : gen_request["sema_dyn"],
|
|
|
272 |
"sampler": gen_request["sampler"],
|
273 |
"steps": 28 if gen_request["type"]!="upper" else gen_request["steps"],
|
274 |
"scale": gen_request["scale"],
|
275 |
+
"uncond_scale": gen_request["uncond_scale"],
|
276 |
"negative_prompt": gen_request["negative"],
|
277 |
"sm" : gen_request["sema"],
|
278 |
"sm_dyn" : gen_request["sema_dyn"],
|
Danbooru Prompt Selector/TEST2024/NAIA_random_function_core.py
CHANGED
@@ -123,6 +123,14 @@ def RFP(popped_row, fix_prompt, after_prompt, auto_hide_prompt, rm_a, rm_s, rm_c
|
|
123 |
for keyword in temp_general:
|
124 |
general.remove(keyword)
|
125 |
fix = [item.strip() for item in fix_prompt.split(',')]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
if rm_a == 0:
|
127 |
if popped_row['artist']:
|
128 |
artists = [item.strip() for item in popped_row['artist'].split(',')]
|
@@ -192,5 +200,7 @@ def RFP(popped_row, fix_prompt, after_prompt, auto_hide_prompt, rm_a, rm_s, rm_c
|
|
192 |
for keyword in s_word:
|
193 |
if keyword in processed:
|
194 |
processed.remove(keyword)
|
195 |
-
|
|
|
|
|
196 |
return ', '.join(processed), popped_row['rating']
|
|
|
123 |
for keyword in temp_general:
|
124 |
general.remove(keyword)
|
125 |
fix = [item.strip() for item in fix_prompt.split(',')]
|
126 |
+
at_first = []
|
127 |
+
for fp in fix:
|
128 |
+
if fp.startswith('*'):
|
129 |
+
at_first.append(fp[1:])
|
130 |
+
if at_first:
|
131 |
+
for af in at_first:
|
132 |
+
if '*'+af in fix:
|
133 |
+
fix.remove('*'+af)
|
134 |
if rm_a == 0:
|
135 |
if popped_row['artist']:
|
136 |
artists = [item.strip() for item in popped_row['artist'].split(',')]
|
|
|
200 |
for keyword in s_word:
|
201 |
if keyword in processed:
|
202 |
processed.remove(keyword)
|
203 |
+
|
204 |
+
if at_first:
|
205 |
+
processed = at_first + processed
|
206 |
return ', '.join(processed), popped_row['rating']
|