Upload 3 files
Browse filesFiles changed (3)
123version https://git-lfs.github.com/spec/v1oid sha256:dcf08a1a57c417ff09cec03b41545f9200ef30c3ede7f440be8222ce1da09cf1size 854809343123version https://git-lfs.github.com/spec/v1oid sha256:8c212fa226d9e6ac3494f9bd078ef73fe35aae0d27daa323480326d4d3b15584size 854809342
1554 unmodified lines1555155615571558155915601561936 unmodified lines2498249925002501250225032080 unmodified lines45844585458645874588458945904591459245934594459545964597459845994600460146024603460435 unmodified lines464046414642464346444645464614 unmodified lines4661466246634664466546664667408 unmodified lines507650775078507950805081508250835084508550865087508850892087 unmodified lines71777178717971807181718271837184718571867187718871897190192 unmodified lines738373847385738673877388738973907391739273937394739573961554 unmodified linesself.xy_plot_count = 0self.import_image_negative = {}self.title("NAIA Beta v1.09 (Test version)")self.grid_rowconfigure(0, weight=1)self.columnconfigure(2, weight=1)936 unmodified linesafter_wildcard = self.image_generation_repeat_promptself.image_generation_repeat_current += 1elif self.image_generation_repeat > 1 and not self.hold_wildcard:self.image_generation_repeat_current += 1##############################gen_request = {2080 unmodified linesself.image_label_report.insert("0.0", temp)self.image_label_report.configure(state="disabled")if result_image:if app.state() != 'zoomed':instant_result_image = customtkinter.CTkImage(result_image, size=(620,620))else:current_image = Image.open(filename)original_width, original_height = current_image.sizemax_size = app.winfo_screenheight()-100if original_width > max_size or original_height > max_size:new_image = Image.new("RGB", (max_size, max_size), "black")new_image.paste(current_image, ((max_size - original_width) // 2, (max_size - original_height) // 2))instant_result_image = customtkinter.CTkImage(new_image, size=(max_size, max_size))else:instant_result_image = customtkinter.CTkImage(current_image, size=(max_size, max_size))self.image_label.configure(image=instant_result_image)img_label_result.grid(row=0, column=1)img_label_result.configure(image=customtkinter.CTkImage(result_image, size=(576, 576)))set_image_to_queue(result_image, result_prompt, str(result_seed), filename)generation_thread = threading.Thread(target=run_generation, daemon=True)generation_thread.start()35 unmodified linesimg2img_window_left = customtkinter.CTkScrollableFrame(img2img_window)img2img_window_left.grid(row=0, column=0, pady=5, padx=5, sticky="nsew")img2img_window_right = customtkinter.CTkFrame(img2img_window, width=586)img2img_window_right.grid(row=0, column=1, pady=5, padx=5, sticky="nsew")#img2img_window_menu = customtkinter.CTkFrame(img2img_window, width=140)#img2img_window_menu.grid(row=0, column=2, pady=5, padx=5, sticky="nsew")14 unmodified linesimg_label = customtkinter.CTkCanvas(img2img_window_left, width=cwidth, height=cheight)img_label.grid(row=0, column=0)img_label_result = customtkinter.CTkLabel(img2img_window_left, text="")# 마스크 이미지 생성 및 저장 함수def create_and_save_mask_image():408 unmodified linesinstant_result_image = customtkinter.CTkImage(result_image, size=(620,620))else:current_image = Image.open(filename)original_width, original_height = current_image.sizemax_size = app.winfo_screenheight()-100if original_width > max_size or original_height > max_size:new_image = Image.new("RGB", (max_size, max_size), "black")new_image.paste(current_image, ((max_size - original_width) // 2, (max_size - original_height) // 2))instant_result_image = customtkinter.CTkImage(new_image, size=(max_size, max_size))else:instant_result_image = customtkinter.CTkImage(current_image, size=(max_size, max_size))self.image_label.configure(image=instant_result_image)set_image_to_queue(result_image, result_prompt, str(result_seed), filename)generation_thread = threading.Thread(target=run_generation, daemon=True)2087 unmodified linesinstant_result_image = customtkinter.CTkImage(result_image, size=(620,620))else:current_image = Image.open(filename)original_width, original_height = current_image.sizemax_size = app.winfo_screenheight()-100if original_width > max_size or original_height > max_size:new_image = Image.new("RGB", (max_size, max_size), "black")new_image.paste(current_image, ((max_size - original_width) // 2, (max_size - original_height) // 2))instant_result_image = customtkinter.CTkImage(new_image, size=(max_size, max_size))else:instant_result_image = customtkinter.CTkImage(current_image, size=(max_size, max_size))self.image_label.configure(image=instant_result_image)app.ext_set_image_to_queue(result_image, result_prompt, str(result_seed), filename)x_position = label_space + (xloop * image_width)192 unmodified linesinstant_result_image = customtkinter.CTkImage(result_image, size=(620,620))else:current_image = Image.open(filename)original_width, original_height = current_image.sizemax_size = app.winfo_screenheight()-100if original_width > max_size or original_height > max_size:new_image = Image.new("RGB", (max_size, max_size), "black")new_image.paste(current_image, ((max_size - original_width) // 2, (max_size - original_height) // 2))instant_result_image = customtkinter.CTkImage(new_image, size=(max_size, max_size))else:instant_result_image = customtkinter.CTkImage(current_image, size=(max_size, max_size))self.image_label.configure(image=instant_result_image)app.ext_set_image_to_queue(result_image, result_prompt, str(result_seed), filename)if self.instant_stop_bit:1554 unmodified lines1555155615571558155915601561936 unmodified lines24982499250025012502250325042505250625072080 unmodified lines45884589459045914592459345944595459645974598459946004601460246034604460546064607460835 unmodified lines464446454646464746484649465014 unmodified lines4665466646674668466946704671408 unmodified lines508050815082508350845085508650872087 unmodified lines71757176717771787179718071817182192 unmodified lines737573767377737873797380738173821554 unmodified linesself.xy_plot_count = 0self.import_image_negative = {}self.title("NAIA Beta v1.09.1 (Test version 2)")self.grid_rowconfigure(0, weight=1)self.columnconfigure(2, weight=1)936 unmodified linesafter_wildcard = self.image_generation_repeat_promptself.image_generation_repeat_current += 1elif self.image_generation_repeat > 1 and not self.hold_wildcard:if self.image_generation_repeat_flag == False:self.image_generation_repeat_flag = Trueself.image_generation_repeat_prompt = after_wildcardafter_wildcard = self.image_generation_repeat_promptself.image_generation_repeat_current += 1##############################gen_request = {2080 unmodified linesself.image_label_report.insert("0.0", temp)self.image_label_report.configure(state="disabled")if result_image:current_image = Image.open(filename)cw, ch = current_image.sizecw = int(cw * (100 / app.dpi))ch = int(ch * (100 / app.dpi))if app.state() != 'zoomed':instant_result_image = customtkinter.CTkImage(result_image, size=(620,620))else:new_image = self.resize_and_center_image(current_image, self.wide_res_width, self.wide_res_height)instant_result_image = customtkinter.CTkImage(new_image, size=(self.wide_res_width, self.wide_res_height))self.image_label.configure(image=instant_result_image)img_label_result.grid(row=0, column=1)if app.winfo_screenheight() >= 1152:img_label_result.configure(image=customtkinter.CTkImage(current_image, size=(cw, ch)))else:img_label_result.configure(image=customtkinter.CTkImage(result_image, size=(620,620)))set_image_to_queue(result_image, result_prompt, str(result_seed), filename)generation_thread = threading.Thread(target=run_generation, daemon=True)generation_thread.start()35 unmodified linesimg2img_window_left = customtkinter.CTkScrollableFrame(img2img_window)img2img_window_left.grid(row=0, column=0, pady=5, padx=5, sticky="nsew")img2img_window_right = customtkinter.CTkFrame(img2img_window, width=586)img2img_window_right.grid(row=0, column=2, pady=5, padx=5, sticky="nsew")#img2img_window_menu = customtkinter.CTkFrame(img2img_window, width=140)#img2img_window_menu.grid(row=0, column=2, pady=5, padx=5, sticky="nsew")14 unmodified linesimg_label = customtkinter.CTkCanvas(img2img_window_left, width=cwidth, height=cheight)img_label.grid(row=0, column=0)img_label_result = customtkinter.CTkLabel(img2img_window, text="")# 마스크 이미지 생성 및 저장 함수def create_and_save_mask_image():408 unmodified linesinstant_result_image = customtkinter.CTkImage(result_image, size=(620,620))else:current_image = Image.open(filename)new_image = self.resize_and_center_image(current_image, self.wide_res_width, self.wide_res_height)instant_result_image = customtkinter.CTkImage(new_image, size=(self.wide_res_width, self.wide_res_height))self.image_label.configure(image=instant_result_image)set_image_to_queue(result_image, result_prompt, str(result_seed), filename)generation_thread = threading.Thread(target=run_generation, daemon=True)2087 unmodified linesinstant_result_image = customtkinter.CTkImage(result_image, size=(620,620))else:current_image = Image.open(filename)new_image = self.resize_and_center_image(current_image, self.wide_res_width, self.wide_res_height)instant_result_image = customtkinter.CTkImage(new_image, size=(self.wide_res_width, self.wide_res_height))self.image_label.configure(image=instant_result_image)app.ext_set_image_to_queue(result_image, result_prompt, str(result_seed), filename)x_position = label_space + (xloop * image_width)192 unmodified linesinstant_result_image = customtkinter.CTkImage(result_image, size=(620,620))else:current_image = Image.open(filename)new_image = self.resize_and_center_image(current_image, self.wide_res_width, self.wide_res_height)instant_result_image = customtkinter.CTkImage(new_image, size=(self.wide_res_width, self.wide_res_height))self.image_label.configure(image=instant_result_image)app.ext_set_image_to_queue(result_image, result_prompt, str(result_seed), filename)if self.instant_stop_bit:
312 unmodified lines31331431531631731831922 unmodified lines342343344345346347348312 unmodified lines"noise_schedule": "native"}if "image" not in gen_request and "reference_image" in gen_request:params["reference_image"] = gen_request["reference_image"]params["reference_information_extracted"] = gen_request["reference_information_extracted"]params["reference_strength"] = gen_request["reference_strength"]22 unmodified linescurrent_key = instant_keyword[gen_request["repeat"]]else:current_key = instant_keyword[gen_request["repeat"] % len(instant_keyword)]keywords[i] = current_keyfilename_rule = gen_request["png_rule"]save_folder = gen_request["save_folder"]312 unmodified lines31331431531631731831922 unmodified lines342343344345346347348312 unmodified lines"noise_schedule": "native"}if "reference_image" in gen_request:params["reference_image"] = gen_request["reference_image"]params["reference_information_extracted"] = gen_request["reference_information_extracted"]params["reference_strength"] = gen_request["reference_strength"]22 unmodified linescurrent_key = instant_keyword[gen_request["repeat"]]else:current_key = instant_keyword[gen_request["repeat"] % len(instant_keyword)]keywords[i] = ', '.join(current_key.split('^'))filename_rule = gen_request["png_rule"]save_folder = gen_request["save_folder"]
Danbooru Prompt Selector/TEST2024/NAIA_0228_testv2.exe+2-2
Danbooru Prompt Selector/TEST2024/NAIA_0228_testv2.py+23-37
Danbooru Prompt Selector/TEST2024/NAIA_generation.py+2-2