Upload 3 files
Browse files
.gitattributes
CHANGED
@@ -125,3 +125,4 @@ Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0211_testv3.exe filte
|
|
125 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0214_testv1.exe filter=lfs diff=lfs merge=lfs -text
|
126 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/NAIA_0214_testv2.exe filter=lfs diff=lfs merge=lfs -text
|
127 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0216_testv1.exe filter=lfs diff=lfs merge=lfs -text
|
|
|
|
125 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0214_testv1.exe filter=lfs diff=lfs merge=lfs -text
|
126 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/NAIA_0214_testv2.exe filter=lfs diff=lfs merge=lfs -text
|
127 |
Danbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0216_testv1.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
|
Danbooru Prompt Selector/TEST2024/NAIA_0217_testv1.exe
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b86106cdd1e97f072bea374d18a7b19112c2a49ccd21a826052cbc8c52fb8023
|
3 |
+
size 888962451
|
Danbooru Prompt Selector/TEST2024/NAIA_0217_testv1.py
ADDED
The diff for this file is too large to render.
See raw diff
|
|
Danbooru Prompt Selector/TEST2024/NAIA_generation.py
CHANGED
@@ -283,7 +283,11 @@ def generate(gen_request):
|
|
283 |
"noise_schedule": "native"
|
284 |
}
|
285 |
|
286 |
-
|
|
|
|
|
|
|
|
|
287 |
positive = gen_request["prompt"]
|
288 |
keywords = [key.strip() for key in positive.split(',')]
|
289 |
|
@@ -313,11 +317,12 @@ def generate(gen_request):
|
|
313 |
request_type = "generate"
|
314 |
if "image" in gen_request:
|
315 |
params["image"] = gen_request["image"]
|
316 |
-
|
317 |
-
|
|
|
318 |
params["sm"] = False
|
319 |
params["sm_dyn"] = False
|
320 |
-
request_type = "img2img"
|
321 |
|
322 |
temp_del = []
|
323 |
for key in keywords:
|
@@ -357,7 +362,7 @@ def generate(gen_request):
|
|
357 |
file.write(error_message)
|
358 |
|
359 |
try:
|
360 |
-
zipped_bytes = generate_image(access_token, positive, "nai-diffusion-3", request_type, params)
|
361 |
if gen_request["png_rule"] == "count":
|
362 |
additional_folder = "/" + gen_request["start_time"]
|
363 |
if gen_request["type"] == "turbo":
|
|
|
283 |
"noise_schedule": "native"
|
284 |
}
|
285 |
|
286 |
+
if gen_request["type"]=="inpaint":
|
287 |
+
if "mask" in gen_request:
|
288 |
+
params["mask"] = gen_request["mask"]
|
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 |
|
|
|
317 |
request_type = "generate"
|
318 |
if "image" in gen_request:
|
319 |
params["image"] = gen_request["image"]
|
320 |
+
if "strength" in gen_request:
|
321 |
+
params["strength"] = gen_request["strength"]
|
322 |
+
params["noise"] = gen_request["noise"]
|
323 |
params["sm"] = False
|
324 |
params["sm_dyn"] = False
|
325 |
+
request_type = "img2img" if "mask" not in gen_request else "infill"
|
326 |
|
327 |
temp_del = []
|
328 |
for key in keywords:
|
|
|
362 |
file.write(error_message)
|
363 |
|
364 |
try:
|
365 |
+
zipped_bytes = generate_image(access_token, positive, "nai-diffusion-3" if "mask" not in params else "nai-diffusion-3-inpainting", request_type, params)
|
366 |
if gen_request["png_rule"] == "count":
|
367 |
additional_folder = "/" + gen_request["start_time"]
|
368 |
if gen_request["type"] == "turbo":
|