Upload prompt_selector_auto_1129.py
Browse files71 unmodified lines72737475767778797 unmodified lines8788899091929362 unmodified lines15615715815916016116271 unmodified linesglobal temp_clipboard_imageglobal current_samplerglobal NAI_width, NAI_heightscale = entry_CFG_value.get()if type(scale) is not float or type(scale) is not int: scale = 5.0if scale > 7.0: scale = 7.0elif scale < 4.0: scale = 4.0else: scale = round(scale, 1)7 unmodified lines"extra_noise_seed": random.randint(0,9999999999),"sampler": current_sampler,"steps": 28,"scale": 5.5,"uncond_scale": 1.0,"negative_prompt": negative_text.get("1.0", "end-1c").strip(),"sm" : sema_button_var.get(),62 unmodified linesbutton.config(state=tk.NORMAL)if mac_var.get():random_function()time.sleep(random.uniform(0.1, 3.5))button.config(state=tk.DISABLED)window.event_generate(GENERATE_EVENT, when="tail")71 unmodified lines727374757677787980817 unmodified lines8990919293949562 unmodified lines15815916016116216316471 unmodified linesglobal temp_clipboard_imageglobal current_samplerglobal NAI_width, NAI_heighttry:scale = float(entry_CFG_value.get())except:scale = 5.0if scale > 7.0: scale = 7.0elif scale < 4.0: scale = 4.0else: scale = round(scale, 1)7 unmodified lines"extra_noise_seed": random.randint(0,9999999999),"sampler": current_sampler,"steps": 28,"scale": scale,"uncond_scale": 1.0,"negative_prompt": negative_text.get("1.0", "end-1c").strip(),"sm" : sema_button_var.get(),62 unmodified linesbutton.config(state=tk.NORMAL)if mac_var.get():random_function()time.sleep(random.uniform(5.1, 8.5))button.config(state=tk.DISABLED)window.event_generate(GENERATE_EVENT, when="tail")
Danbooru Prompt Selector/prompt_selector_auto_1129.py+6-4