You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* sd: add backend support for choosing the default sampler
* use the default sampler on the API
* sd: add backend support for the scheduler
* sd: add backend support for distilled guidance
* sd: add backend support for timestep-shift
* sd: add a config field to set default image gen options
makecheckbox(images_tab, "Model CPU Offload", sd_offload_cpu_var, 50,padx=8, tooltiptxt="Offload image weights in RAM to save VRAM, swap into VRAM when needed.")
5452
5523
makecheckbox(images_tab, "VAE on CPU", sd_vae_cpu_var, 50,padx=160, tooltiptxt="Force VAE to CPU only for image generation.")
5453
5524
makecheckbox(images_tab, "CLIP on GPU", sd_clip_gpu_var, 50,padx=280, tooltiptxt="Put CLIP and T5 to GPU for image generation. Otherwise, CLIP will use CPU.")
5525
+
makelabelentry(images_tab, "Default Params:", sd_gen_defaults_var, 52, 280, padx=110, singleline=True, tooltip='Default image generation parameters when not specified by the UI or API.\nSpecified as JSON fields: {"KEY1":"VALUE1", "KEY2":"VALUE2"...}')
5454
5526
5455
5527
# audio tab
5456
5528
audio_tab=tabcontent["Audio"]
@@ -5725,6 +5797,7 @@ def export_vars():
5725
5797
args.sdloramult=float(sd_loramult_var.get())
5726
5798
else:
5727
5799
args.sdlora=""
5800
+
args.sdgendefaults=sd_gen_defaults_var.get()
5728
5801
5729
5802
ifwhisper_model_var.get() !="":
5730
5803
args.whispermodel=whisper_model_var.get()
@@ -5951,6 +6024,7 @@ def import_vars(dict):
5951
6024
5952
6025
sd_lora_var.set(dict["sdlora"] if ("sdlora"indictanddict["sdlora"]) else"")
5953
6026
sd_loramult_var.set(str(dict["sdloramult"]) if ("sdloramult"indictanddict["sdloramult"]) else"1.0")
sdparsergrouplora.add_argument("--sdlora", metavar=('[filename]'), help="Specify an image generation LORA safetensors model to be applied.", default="")
7788
7862
sdparsergroup.add_argument("--sdloramult", metavar=('[amount]'), help="Multiplier for the image LORA model to be applied.", type=float, default=1.0)
7789
7863
sdparsergroup.add_argument("--sdtiledvae", metavar=('[maxres]'), help="Adjust the automatic VAE tiling trigger for images above this size. 0 disables vae tiling.", type=int, default=default_vae_tile_threshold)
7864
+
sdparsergroup.add_argument("--sdgendefaults", metavar=('{"parameter":"value",...}'), help="Sets default parameters for image generation, as a JSON string.", default="")
whisperparsergroup.add_argument("--whispermodel", metavar=('[filename]'), help="Specify a Whisper .bin model to enable Speech-To-Text transcription.", default="")
0 commit comments