Upload 2 files
Browse files
Danbooru Prompt Selector/TEST2024/prompt_selector_auto_1212_testv8.exe
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96e70647e72bf2b5840baeefddecd0e692df3e08e5c2200569b6c282f859573a
|
| 3 |
+
size 151426036
|
Danbooru Prompt Selector/TEST2024/prompt_selector_auto_1212_testv8.py
CHANGED
|
@@ -486,6 +486,8 @@ def random_function():
|
|
| 486 |
for _keyword in split_previous_wildcard_character:
|
| 487 |
if _keyword in random_row_keywords:
|
| 488 |
random_row_keywords.remove(_keyword)
|
|
|
|
|
|
|
| 489 |
previous_wildcard_character = get_random_keyword('character')
|
| 490 |
girl_keywords.append(previous_wildcard_character)
|
| 491 |
if(wildcard_var.get() == 1):
|
|
@@ -1065,6 +1067,20 @@ def character_search():
|
|
| 1065 |
def character_cosplay_auto_generate():
|
| 1066 |
if(character_cosplay_auto_insert() and not running_flag):
|
| 1067 |
window.event_generate(GENERATE_EVENT, when="tail")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1068 |
|
| 1069 |
# right_frame ๋ด๋ถ ๊ตฌ์ฑ
|
| 1070 |
character_prompt_frame = tk.Frame(right_frame)
|
|
@@ -1075,6 +1091,8 @@ def character_search():
|
|
| 1075 |
character_prompt_insert.grid(row=0, column=1, padx=10, pady=5, sticky="ew")
|
| 1076 |
character_prompt_generate = tk.Button(character_prompt_frame, text="์ฆ์์์ฑ", command=character_prompt_auto_generate)
|
| 1077 |
character_prompt_generate.grid(row=0, column=2, padx=10, pady=5, sticky="ew")
|
|
|
|
|
|
|
| 1078 |
character_prompt = tk.Text(right_frame, height=10)
|
| 1079 |
character_prompt.grid(row=1, column=0, padx=10, pady=5, sticky="nsew")
|
| 1080 |
#row=3, column=0, padx=10, pady=5, sticky="nsew"
|
|
@@ -1166,14 +1184,6 @@ def NAI_generation_turbo(width, height, button):
|
|
| 1166 |
if word in positive:
|
| 1167 |
state[word] = True
|
| 1168 |
|
| 1169 |
-
if(result["boys"]):
|
| 1170 |
-
#group sex
|
| 1171 |
-
if(result["girls"]):
|
| 1172 |
-
pass
|
| 1173 |
-
#gangbang
|
| 1174 |
-
elif(result["1girl"]):
|
| 1175 |
-
pass
|
| 1176 |
-
|
| 1177 |
key_index = int((len(keywords)/2)-1)
|
| 1178 |
|
| 1179 |
global bag_of_tags
|
|
@@ -1192,9 +1202,7 @@ def NAI_generation_turbo(width, height, button):
|
|
| 1192 |
keywords.insert(2, key_feature)
|
| 1193 |
|
| 1194 |
if(result["1boy"]):
|
| 1195 |
-
if(result["
|
| 1196 |
-
pass
|
| 1197 |
-
elif(result["1girl"]):
|
| 1198 |
if('sex,' in positive):
|
| 1199 |
sex_pos_keywords = ['stomach bulge','insertion', 'fucked silly', 'x-ray', 'orgasm', 'cross-section', 'uterus', 'overflow', 'rape']
|
| 1200 |
facial_keywords = ['tongue','ahegao']
|
|
|
|
| 486 |
for _keyword in split_previous_wildcard_character:
|
| 487 |
if _keyword in random_row_keywords:
|
| 488 |
random_row_keywords.remove(_keyword)
|
| 489 |
+
if " "+_keyword in random_row_keywords:
|
| 490 |
+
random_row_keywords.remove(" "+_keyword)
|
| 491 |
previous_wildcard_character = get_random_keyword('character')
|
| 492 |
girl_keywords.append(previous_wildcard_character)
|
| 493 |
if(wildcard_var.get() == 1):
|
|
|
|
| 1067 |
def character_cosplay_auto_generate():
|
| 1068 |
if(character_cosplay_auto_insert() and not running_flag):
|
| 1069 |
window.event_generate(GENERATE_EVENT, when="tail")
|
| 1070 |
+
|
| 1071 |
+
def wildcard_insertion():
|
| 1072 |
+
global bag_of_tags, character_wildcard_saved
|
| 1073 |
+
text = character_prompt.get("1.0", tk.END).split(',')
|
| 1074 |
+
text_list = [keyword.strip() for keyword in text]
|
| 1075 |
+
charactersitics = []
|
| 1076 |
+
count = 0
|
| 1077 |
+
for texts in text_list:
|
| 1078 |
+
if count < 4 and texts in bag_of_tags[5:] and 'tail' not in texts and 'pupil' not in texts:
|
| 1079 |
+
charactersitics.append(texts)
|
| 1080 |
+
count += 1
|
| 1081 |
+
keyword = text_list[0]
|
| 1082 |
+
character_wildcard_saved.append('100:{{'+keyword+', '+', '.join(charactersitics)+'}}')
|
| 1083 |
+
character_prompt.insert(tk.END, '\n์ ์ฅ๋ ์์ผ๋์นด๋ : 100:{{'+keyword+', '+', '.join(charactersitics)+'}} ํ์ฌ๋ ๋ฐ๋ก ํ๋ฒ ๋ ํด์ฃผ์
์ผ ํฉ๋๋ค.')
|
| 1084 |
|
| 1085 |
# right_frame ๋ด๋ถ ๊ตฌ์ฑ
|
| 1086 |
character_prompt_frame = tk.Frame(right_frame)
|
|
|
|
| 1091 |
character_prompt_insert.grid(row=0, column=1, padx=10, pady=5, sticky="ew")
|
| 1092 |
character_prompt_generate = tk.Button(character_prompt_frame, text="์ฆ์์์ฑ", command=character_prompt_auto_generate)
|
| 1093 |
character_prompt_generate.grid(row=0, column=2, padx=10, pady=5, sticky="ew")
|
| 1094 |
+
character_prompt_wildcard = tk.Button(character_prompt_frame, text="์์ผ๋์นด๋ ์ฝ์
", command=wildcard_insertion)
|
| 1095 |
+
character_prompt_wildcard.grid(row=0, column=3, padx=10, pady=5, sticky="ew")
|
| 1096 |
character_prompt = tk.Text(right_frame, height=10)
|
| 1097 |
character_prompt.grid(row=1, column=0, padx=10, pady=5, sticky="nsew")
|
| 1098 |
#row=3, column=0, padx=10, pady=5, sticky="nsew"
|
|
|
|
| 1184 |
if word in positive:
|
| 1185 |
state[word] = True
|
| 1186 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1187 |
key_index = int((len(keywords)/2)-1)
|
| 1188 |
|
| 1189 |
global bag_of_tags
|
|
|
|
| 1202 |
keywords.insert(2, key_feature)
|
| 1203 |
|
| 1204 |
if(result["1boy"]):
|
| 1205 |
+
if(result["1girl"]):
|
|
|
|
|
|
|
| 1206 |
if('sex,' in positive):
|
| 1207 |
sex_pos_keywords = ['stomach bulge','insertion', 'fucked silly', 'x-ray', 'orgasm', 'cross-section', 'uterus', 'overflow', 'rape']
|
| 1208 |
facial_keywords = ['tongue','ahegao']
|