Don't show or save hypernetwork info if using v3 (diffusers)

This commit is contained in:
cmdr2 2023-08-18 19:09:14 +05:30
parent 8957250db8
commit ca8a96f956

View File

@ -15,14 +15,12 @@ const SETTINGS_IDS_LIST = [
"stable_diffusion_model", "stable_diffusion_model",
"clip_skip", "clip_skip",
"vae_model", "vae_model",
"hypernetwork_model",
"sampler_name", "sampler_name",
"width", "width",
"height", "height",
"num_inference_steps", "num_inference_steps",
"guidance_scale", "guidance_scale",
"prompt_strength", "prompt_strength",
"hypernetwork_strength",
"tiling", "tiling",
"output_format", "output_format",
"output_quality", "output_quality",
@ -62,6 +60,11 @@ const SETTINGS_IDS_LIST = [
const IGNORE_BY_DEFAULT = ["prompt"] const IGNORE_BY_DEFAULT = ["prompt"]
if (!testDiffusers.checked) {
SETTINGS_IDS_LIST.push("hypernetwork_model")
SETTINGS_IDS_LIST.push("hypernetwork_strength")
}
const SETTINGS_SECTIONS = [ const SETTINGS_SECTIONS = [
// gets the "keys" property filled in with an ordered list of settings in this section via initSettings // gets the "keys" property filled in with an ordered list of settings in this section via initSettings
{ id: "editor-inputs", name: "Prompt" }, { id: "editor-inputs", name: "Prompt" },