Upload 4 files
Browse files
.gitattributes
CHANGED
@@ -128,3 +128,4 @@ Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0216_testv1.exe filte
|
|
128 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0217_testv1.exe filter=lfs diff=lfs merge=lfs -text
|
129 |
NAIA_0217_testv1.exe filter=lfs diff=lfs merge=lfs -text
|
130 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0217_testv2.exe filter=lfs diff=lfs merge=lfs -text
|
|
|
|
128 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0217_testv1.exe filter=lfs diff=lfs merge=lfs -text
|
129 |
NAIA_0217_testv1.exe filter=lfs diff=lfs merge=lfs -text
|
130 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0217_testv2.exe filter=lfs diff=lfs merge=lfs -text
|
131 |
+
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0218_testv1.exe filter=lfs diff=lfs merge=lfs -text
|
Danbooru Prompt Selector/TEST2024/NAIA_0218_testv1.exe
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1ecefb97b355523ab752674cb4133987e5f21045503835c6eddd20febcce7f94
|
3 |
+
size 888965581
|
Danbooru Prompt Selector/TEST2024/NAIA_0218_testv1.py
ADDED
The diff for this file is too large to render.
See raw diff
|
|
Danbooru Prompt Selector/TEST2024/NAIA_generation.py
CHANGED
@@ -289,6 +289,7 @@ def generate(gen_request):
|
|
289 |
params['add_original_image'] = gen_request['add_original_image']
|
290 |
|
291 |
positive = gen_request["prompt"]
|
|
|
292 |
keywords = [key.strip() for key in positive.split(',')]
|
293 |
|
294 |
if "cond_negative" in gen_request and gen_request["cond_negative"]:
|
|
|
289 |
params['add_original_image'] = gen_request['add_original_image']
|
290 |
|
291 |
positive = gen_request["prompt"]
|
292 |
+
positive = re.sub(r'#.*?(\n|,|$)', '', positive)
|
293 |
keywords = [key.strip() for key in positive.split(',')]
|
294 |
|
295 |
if "cond_negative" in gen_request and gen_request["cond_negative"]:
|
Danbooru Prompt Selector/TEST2024/NAIA_random_function_core.py
CHANGED
@@ -96,8 +96,6 @@ def find_keyword_index(general):
|
|
96 |
def RFP(popped_row, fix_prompt, after_prompt, auto_hide_prompt, rm_a, rm_s, rm_c, nsfw, data, magic_word):
|
97 |
boys = ["1boy", "2boys", "3boys", "4boys", "5boys", "6+boys"]
|
98 |
girls = ["1girl", "2girls", "3girls", "4girls", "5girls", "6+girls"]
|
99 |
-
if isinstance(popped_row, pd.DataFrame):
|
100 |
-
popped_row = popped_row.iloc[0]
|
101 |
general = [item.strip() for item in popped_row['general'].split(',')]
|
102 |
special_word_check = fix_prompt+', '+after_prompt
|
103 |
special_word_check = [item.strip() for item in special_word_check.split(',')]
|
@@ -205,4 +203,6 @@ def RFP(popped_row, fix_prompt, after_prompt, auto_hide_prompt, rm_a, rm_s, rm_c
|
|
205 |
|
206 |
if at_first:
|
207 |
processed = at_first + processed
|
|
|
|
|
208 |
return ', '.join(processed), popped_row['rating']
|
|
|
96 |
def RFP(popped_row, fix_prompt, after_prompt, auto_hide_prompt, rm_a, rm_s, rm_c, nsfw, data, magic_word):
|
97 |
boys = ["1boy", "2boys", "3boys", "4boys", "5boys", "6+boys"]
|
98 |
girls = ["1girl", "2girls", "3girls", "4girls", "5girls", "6+girls"]
|
|
|
|
|
99 |
general = [item.strip() for item in popped_row['general'].split(',')]
|
100 |
special_word_check = fix_prompt+', '+after_prompt
|
101 |
special_word_check = [item.strip() for item in special_word_check.split(',')]
|
|
|
203 |
|
204 |
if at_first:
|
205 |
processed = at_first + processed
|
206 |
+
for i, key in enumerate(processed):
|
207 |
+
if key.startswith('#'): processed[i] = '\n\n'+key+'\n'
|
208 |
return ', '.join(processed), popped_row['rating']
|