Upload 3 files
Browse files
.gitattributes
CHANGED
@@ -121,3 +121,4 @@ Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0203_testv2.exe filte
|
|
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
|
|
|
|
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
|
124 |
+
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0211_testv3.exe filter=lfs diff=lfs merge=lfs -text
|
Danbooru Prompt Selector/TEST2024/NAIA_0211_testv3.exe
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fad3a80f70b4fc833e2f6334dd06bbfa1ac2862c550e2f0a24fc9ab9380531ef
|
3 |
+
size 838007401
|
Danbooru Prompt Selector/TEST2024/NAIA_0211_testv3.py
ADDED
The diff for this file is too large to render.
See raw diff
|
|
Danbooru Prompt Selector/TEST2024/NAIA_generation.py
CHANGED
@@ -285,6 +285,7 @@ def generate(gen_request):
|
|
285 |
|
286 |
|
287 |
positive = gen_request["prompt"]
|
|
|
288 |
|
289 |
if "cond_negative" in gen_request and gen_request["cond_negative"]:
|
290 |
user_input = gen_request["cond_negative"]
|
@@ -293,7 +294,6 @@ def generate(gen_request):
|
|
293 |
|
294 |
if "repeat" in gen_request:
|
295 |
max = gen_request["repeat_max"]
|
296 |
-
keywords = [key.strip() for key in positive.split(',')]
|
297 |
|
298 |
for i, key in enumerate(keywords):
|
299 |
if "->" in key:
|
@@ -304,8 +304,6 @@ def generate(gen_request):
|
|
304 |
current_key = instant_keyword[gen_request["repeat"] % len(instant_keyword)]
|
305 |
keywords[i] = current_key
|
306 |
|
307 |
-
positive = ', '.join(keywords)
|
308 |
-
|
309 |
filename_rule = gen_request["png_rule"]
|
310 |
save_folder = gen_request["save_folder"]
|
311 |
|
@@ -321,6 +319,16 @@ def generate(gen_request):
|
|
321 |
params["sm_dyn"] = False
|
322 |
request_type = "img2img"
|
323 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
324 |
def resize_and_fill(image, max_size=None):
|
325 |
if max_size is None:
|
326 |
max_size = gen_request["user_screen_size"]
|
|
|
285 |
|
286 |
|
287 |
positive = gen_request["prompt"]
|
288 |
+
keywords = [key.strip() for key in positive.split(',')]
|
289 |
|
290 |
if "cond_negative" in gen_request and gen_request["cond_negative"]:
|
291 |
user_input = gen_request["cond_negative"]
|
|
|
294 |
|
295 |
if "repeat" in gen_request:
|
296 |
max = gen_request["repeat_max"]
|
|
|
297 |
|
298 |
for i, key in enumerate(keywords):
|
299 |
if "->" in key:
|
|
|
304 |
current_key = instant_keyword[gen_request["repeat"] % len(instant_keyword)]
|
305 |
keywords[i] = current_key
|
306 |
|
|
|
|
|
307 |
filename_rule = gen_request["png_rule"]
|
308 |
save_folder = gen_request["save_folder"]
|
309 |
|
|
|
319 |
params["sm_dyn"] = False
|
320 |
request_type = "img2img"
|
321 |
|
322 |
+
temp_del = []
|
323 |
+
for key in keywords:
|
324 |
+
if key.startswith('*'):
|
325 |
+
temp_del.append(key)
|
326 |
+
for key in temp_del:
|
327 |
+
if key in keywords:
|
328 |
+
keywords.remove(key)
|
329 |
+
|
330 |
+
positive = ', '.join(keywords)
|
331 |
+
|
332 |
def resize_and_fill(image, max_size=None):
|
333 |
if max_size is None:
|
334 |
max_size = gen_request["user_screen_size"]
|