Upload 4 files
Browse files
.gitattributes
CHANGED
|
@@ -119,3 +119,4 @@ Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/WEBUIA_0124.exe filter=lfs
|
|
| 119 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0201_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
|
|
|
|
|
|
| 119 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0201_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
|
Danbooru Prompt Selector/TEST2024/NAIA_0211_testv1.exe
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e85eb1048275b9f50d00c65fe38b01946990a0da49830f1d3d84f0858c8c151f
|
| 3 |
+
size 838004966
|
Danbooru Prompt Selector/TEST2024/NAIA_0211_testv1.py
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Danbooru Prompt Selector/TEST2024/NAIA_generation.py
CHANGED
|
@@ -54,7 +54,7 @@ def make_turbo_prompt(gen_request):
|
|
| 54 |
|
| 55 |
if(result["1boy"]) or (result["boys"]):
|
| 56 |
if(result["1girl"]):
|
| 57 |
-
if('sex
|
| 58 |
sex_pos_keywords = ['stomach bulge','insertion', 'fucked silly', 'x-ray', 'orgasm', 'cross-section', 'uterus', 'overflow', 'rape', 'vaginal', 'anal']
|
| 59 |
facial_keywords = ['tongue','ahegao']
|
| 60 |
temp_sex_pos = []
|
|
|
|
| 54 |
|
| 55 |
if(result["1boy"]) or (result["boys"]):
|
| 56 |
if(result["1girl"]):
|
| 57 |
+
if(', sex' in gen_request['prompt']):
|
| 58 |
sex_pos_keywords = ['stomach bulge','insertion', 'fucked silly', 'x-ray', 'orgasm', 'cross-section', 'uterus', 'overflow', 'rape', 'vaginal', 'anal']
|
| 59 |
facial_keywords = ['tongue','ahegao']
|
| 60 |
temp_sex_pos = []
|
Danbooru Prompt Selector/TEST2024/NAIA_random_function_core.py
CHANGED
|
@@ -96,6 +96,9 @@ def RFP(popped_row, fix_prompt, after_prompt, auto_hide_prompt, rm_a, rm_s, rm_c
|
|
| 96 |
boys = ["1boy", "2boys", "3boys", "4boys", "5boys", "6+boys"]
|
| 97 |
girls = ["1girl", "2girls", "3girls", "4girls", "5girls", "6+girls"]
|
| 98 |
general = [item.strip() for item in popped_row['general'].split(',')]
|
|
|
|
|
|
|
|
|
|
| 99 |
exc = []
|
| 100 |
for keyword in general:
|
| 101 |
if keyword == '!' or keyword == '!?' or keyword == '!!':
|
|
@@ -118,7 +121,7 @@ def RFP(popped_row, fix_prompt, after_prompt, auto_hide_prompt, rm_a, rm_s, rm_c
|
|
| 118 |
temp_general.append(keyword)
|
| 119 |
for keyword in temp_general:
|
| 120 |
general.remove(keyword)
|
| 121 |
-
fix = [item.strip() for item in fix_prompt
|
| 122 |
if rm_a == 0:
|
| 123 |
if popped_row['artist']:
|
| 124 |
artists = [item.strip() for item in popped_row['artist'].split(',')]
|
|
@@ -148,11 +151,21 @@ def RFP(popped_row, fix_prompt, after_prompt, auto_hide_prompt, rm_a, rm_s, rm_c
|
|
| 148 |
processed[fix_index:fix_index] = fix
|
| 149 |
processed += after
|
| 150 |
|
| 151 |
-
if rm_c == 0:
|
| 152 |
if popped_row['character']:
|
| 153 |
character = [item.strip() for item in popped_row['character'].split(',')]
|
| 154 |
processed[fix_index:fix_index] = character
|
| 155 |
fix_index+=len(character)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
if magic_word["random_artist"] == True:
|
| 157 |
processed.insert(fix_index, magic_word["random_artist_name"])
|
| 158 |
|
|
@@ -173,4 +186,10 @@ def RFP(popped_row, fix_prompt, after_prompt, auto_hide_prompt, rm_a, rm_s, rm_c
|
|
| 173 |
if boy_index > girl_index:
|
| 174 |
processed.pop(boy_index)
|
| 175 |
processed.insert(girl_index, boy_in_processed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
return ', '.join(processed), popped_row['rating']
|
|
|
|
| 96 |
boys = ["1boy", "2boys", "3boys", "4boys", "5boys", "6+boys"]
|
| 97 |
girls = ["1girl", "2girls", "3girls", "4girls", "5girls", "6+girls"]
|
| 98 |
general = [item.strip() for item in popped_row['general'].split(',')]
|
| 99 |
+
special_word_check = fix_prompt+', '+after_prompt
|
| 100 |
+
special_word_check = [item.strip() for item in special_word_check.split(',')]
|
| 101 |
+
special_word_check = [item for item in special_word_check if item.startswith('*')]
|
| 102 |
exc = []
|
| 103 |
for keyword in general:
|
| 104 |
if keyword == '!' or keyword == '!?' or keyword == '!!':
|
|
|
|
| 121 |
temp_general.append(keyword)
|
| 122 |
for keyword in temp_general:
|
| 123 |
general.remove(keyword)
|
| 124 |
+
fix = [item.strip() for item in fix_prompt.split(',')]
|
| 125 |
if rm_a == 0:
|
| 126 |
if popped_row['artist']:
|
| 127 |
artists = [item.strip() for item in popped_row['artist'].split(',')]
|
|
|
|
| 151 |
processed[fix_index:fix_index] = fix
|
| 152 |
processed += after
|
| 153 |
|
| 154 |
+
if rm_c == 0 and '*(remove character name)' not in special_word_check and '*(set character name after prefix)' not in special_word_check and '*(set character name before prefix)' not in special_word_check:
|
| 155 |
if popped_row['character']:
|
| 156 |
character = [item.strip() for item in popped_row['character'].split(',')]
|
| 157 |
processed[fix_index:fix_index] = character
|
| 158 |
fix_index+=len(character)
|
| 159 |
+
elif rm_c == 0 and '*(set character name after prefix)' in special_word_check:
|
| 160 |
+
if popped_row['character']:
|
| 161 |
+
character = [item.strip() for item in popped_row['character'].split(',')]
|
| 162 |
+
processed[fix_index+len(fix):fix_index+len(fix)] = character
|
| 163 |
+
#fix_index+=len(character)
|
| 164 |
+
elif rm_c == 0 and '*(set character name before prefix)' in special_word_check:
|
| 165 |
+
if popped_row['character']:
|
| 166 |
+
character = [item.strip() for item in popped_row['character'].split(',')]
|
| 167 |
+
processed[fix_index+1:fix_index+1] = character
|
| 168 |
+
fix_index+=len(character)
|
| 169 |
if magic_word["random_artist"] == True:
|
| 170 |
processed.insert(fix_index, magic_word["random_artist_name"])
|
| 171 |
|
|
|
|
| 186 |
if boy_index > girl_index:
|
| 187 |
processed.pop(boy_index)
|
| 188 |
processed.insert(girl_index, boy_in_processed)
|
| 189 |
+
|
| 190 |
+
s_word = ['*(remove character name)', '*(set character name after prefix)', '*(set character name before prefix)']
|
| 191 |
+
for keyword in s_word:
|
| 192 |
+
if keyword in processed:
|
| 193 |
+
processed.remove(keyword)
|
| 194 |
+
|
| 195 |
return ', '.join(processed), popped_row['rating']
|