Upload 2 files
Browse files
Danbooru Prompt Selector/TEST/prompt_selector_auto_1204_test.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:80c2a198e024b4ed79e9b5af682cfb9beed9eb380fc53cce935a00b73e78fc19
|
| 3 |
+
size 81782708
|
Danbooru Prompt Selector/TEST/prompt_selector_auto_1204_test.py
CHANGED
|
@@ -172,22 +172,23 @@ def generate(width, height, positive, negative, button):
|
|
| 172 |
if mac_var.get():
|
| 173 |
time.sleep(random.uniform(3.0, 9.0))
|
| 174 |
button.config(state=tk.DISABLED)
|
|
|
|
| 175 |
window.event_generate(GENERATE_EVENT, when="tail")
|
| 176 |
else:
|
| 177 |
time.sleep(random.uniform(1.0, 2.5))
|
| 178 |
button.config(state=tk.NORMAL)
|
| 179 |
running_flag = False
|
| 180 |
|
|
|
|
|
|
|
| 181 |
if mac_var.get() and not running_flag:
|
| 182 |
random_function()
|
| 183 |
time.sleep(random.uniform(5.1, 8.5))
|
| 184 |
button.config(state=tk.DISABLED)
|
| 185 |
-
running_flag = False
|
| 186 |
window.event_generate(GENERATE_EVENT, when="tail")
|
| 187 |
else:
|
| 188 |
time.sleep(random.uniform(1.0, 2.5))
|
| 189 |
button.config(state=tk.NORMAL)
|
| 190 |
-
running_flag = False
|
| 191 |
tprint('state : idle')
|
| 192 |
|
| 193 |
def filter_csv(input_file, output_file, _search_strings):
|
|
@@ -823,14 +824,16 @@ def NAI_generation(width, height, button):
|
|
| 823 |
global access_token_multi, NAI_width, NAI_height
|
| 824 |
|
| 825 |
pretest = text_output.get("1.0", tk.END).split(', ')
|
| 826 |
-
if (
|
| 827 |
-
|
| 828 |
-
|
|
|
|
| 829 |
|
| 830 |
if(rand_resolution_var.get() == 1):
|
| 831 |
resolutions = ["1024 x 1024", "960 x 1088", "896 x 1152", "832 x 1216", "1088 x 960", "1152 x 896", "1216 x 832"]
|
| 832 |
random_resolution = random.choice(resolutions)
|
| 833 |
selected_resolution.set(random_resolution)
|
|
|
|
| 834 |
if(turbo_var.get() == 1 and access_token):
|
| 835 |
NAI_generation_turbo(NAI_width, NAI_height, button)
|
| 836 |
else: NAI_generation_normal(NAI_width, NAI_height, button)
|
|
|
|
| 172 |
if mac_var.get():
|
| 173 |
time.sleep(random.uniform(3.0, 9.0))
|
| 174 |
button.config(state=tk.DISABLED)
|
| 175 |
+
running_flag = False
|
| 176 |
window.event_generate(GENERATE_EVENT, when="tail")
|
| 177 |
else:
|
| 178 |
time.sleep(random.uniform(1.0, 2.5))
|
| 179 |
button.config(state=tk.NORMAL)
|
| 180 |
running_flag = False
|
| 181 |
|
| 182 |
+
running_flag = False
|
| 183 |
+
|
| 184 |
if mac_var.get() and not running_flag:
|
| 185 |
random_function()
|
| 186 |
time.sleep(random.uniform(5.1, 8.5))
|
| 187 |
button.config(state=tk.DISABLED)
|
|
|
|
| 188 |
window.event_generate(GENERATE_EVENT, when="tail")
|
| 189 |
else:
|
| 190 |
time.sleep(random.uniform(1.0, 2.5))
|
| 191 |
button.config(state=tk.NORMAL)
|
|
|
|
| 192 |
tprint('state : idle')
|
| 193 |
|
| 194 |
def filter_csv(input_file, output_file, _search_strings):
|
|
|
|
| 824 |
global access_token_multi, NAI_width, NAI_height
|
| 825 |
|
| 826 |
pretest = text_output.get("1.0", tk.END).split(', ')
|
| 827 |
+
if (turbo_var.get() == 1):
|
| 828 |
+
if ( 'sex' not in pretest or '1girl' not in pretest or '1boy' not in pretest):
|
| 829 |
+
tprint('ํ์ฌ ๋ถ์คํธ ๊ธฐ๋ฅ์ 1girl, 1boy, sex ์ธ๊ฐ์ง ํค์๋๊ฐ ์์ด์ผ ๋์ํฉ๋๋ค.')
|
| 830 |
+
return
|
| 831 |
|
| 832 |
if(rand_resolution_var.get() == 1):
|
| 833 |
resolutions = ["1024 x 1024", "960 x 1088", "896 x 1152", "832 x 1216", "1088 x 960", "1152 x 896", "1216 x 832"]
|
| 834 |
random_resolution = random.choice(resolutions)
|
| 835 |
selected_resolution.set(random_resolution)
|
| 836 |
+
|
| 837 |
if(turbo_var.get() == 1 and access_token):
|
| 838 |
NAI_generation_turbo(NAI_width, NAI_height, button)
|
| 839 |
else: NAI_generation_normal(NAI_width, NAI_height, button)
|