From ca8a96f956a800be3f683ccb5ecf3eaa99a3e18c Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Fri, 18 Aug 2023 19:09:14 +0530 Subject: [PATCH] Don't show or save hypernetwork info if using v3 (diffusers) --- ui/media/js/auto-save.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/media/js/auto-save.js b/ui/media/js/auto-save.js index eff23a99..1aec8a55 100644 --- a/ui/media/js/auto-save.js +++ b/ui/media/js/auto-save.js @@ -15,14 +15,12 @@ const SETTINGS_IDS_LIST = [ "stable_diffusion_model", "clip_skip", "vae_model", - "hypernetwork_model", "sampler_name", "width", "height", "num_inference_steps", "guidance_scale", "prompt_strength", - "hypernetwork_strength", "tiling", "output_format", "output_quality", @@ -62,6 +60,11 @@ const SETTINGS_IDS_LIST = [ const IGNORE_BY_DEFAULT = ["prompt"] +if (!testDiffusers.checked) { + SETTINGS_IDS_LIST.push("hypernetwork_model") + SETTINGS_IDS_LIST.push("hypernetwork_strength") +} + const SETTINGS_SECTIONS = [ // gets the "keys" property filled in with an ordered list of settings in this section via initSettings { id: "editor-inputs", name: "Prompt" },