diff --git a/src/lib/Setting/Pages/OtherBotSettings.svelte b/src/lib/Setting/Pages/OtherBotSettings.svelte index 2698b6a9..5d655eab 100644 --- a/src/lib/Setting/Pages/OtherBotSettings.svelte +++ b/src/lib/Setting/Pages/OtherBotSettings.svelte @@ -3,6 +3,7 @@ import { language } from "src/lang"; import Help from "src/lib/Others/Help.svelte"; import { selectSingleFile } from "src/ts/util"; + import { alertError } from "src/ts/alert"; import { DBState, selectedCharID } from 'src/ts/stores.svelte'; import { isTauri, saveAsset, downloadFile } from "src/ts/globalApi.svelte"; import NumberInput from "src/lib/UI/GUI/NumberInput.svelte"; @@ -41,6 +42,7 @@ autoSmea:false, legacy_uc:false, use_coords:false, + cfg_rescale:0, v4_prompt:{ caption:{ base_caption:'', @@ -55,7 +57,12 @@ char_captions:[] }, legacy_uc:false, - } + }, + reference_image_multiple: [], + reference_strength_multiple: [0.7], + vibe_data: undefined, + vibe_model_selection: undefined, + noise_schedule: 'karras' } if (DBState.db.NAIImgConfig.sampler === 'ddim_v3'){ DBState.db.NAIImgConfig.sm = false @@ -174,7 +181,7 @@ ComfyUI (Legacy) {/if} - + {#if DBState.db.sdProvider === 'webui'} You must use WebUI with --api flag You must use WebUI without agpl license or use unmodified version with agpl license to observe the contents of the agpl license. @@ -185,17 +192,17 @@ Steps - + CFG Scale - + Width Height Sampler - +
@@ -273,6 +280,13 @@ CFG rescale + Noise Schedule + + karras + exponential + polyexponential + + {#if !DBState.db.NAII2I || DBState.db.NAIImgConfig.sampler !== 'ddim_v3'} {:else if DBState.db.NAIImgModel === 'nai-diffusion-4-full' @@ -283,13 +297,17 @@ {#if DBState.db.NAIImgModel === 'nai-diffusion-4-full' || DBState.db.NAIImgModel === 'nai-diffusion-4-curated-preview'} + + Prompt Guidance Rescale + + + - {/if} @@ -331,43 +349,138 @@ - {#if DBState.db.NAIREF} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Vibe + + + {#if DBState.db.NAIImgConfig.vibe_data} +
+ Vibe Preview + +
+ + Vibe Model + { + // When vibe model changes, set InfoExtracted to the first value + if (DBState.db.NAIImgConfig.vibe_data?.encodings && + DBState.db.NAIImgConfig.vibe_model_selection && + DBState.db.NAIImgConfig.vibe_data.encodings[DBState.db.NAIImgConfig.vibe_model_selection]) { + const encodings = DBState.db.NAIImgConfig.vibe_data.encodings[DBState.db.NAIImgConfig.vibe_model_selection]; + const firstKey = Object.keys(encodings)[0]; + if (firstKey) { + DBState.db.NAIImgConfig.InfoExtracted = Number(encodings[firstKey].params.information_extracted); + } + } + }}> + {#if DBState.db.NAIImgConfig.vibe_data.encodings?.v4full} + nai-diffusion-4-full + {/if} + {#if DBState.db.NAIImgConfig.vibe_data.encodings?.v4curated} + nai-diffusion-4-curated + {/if} + Information Extracted - - {DBState.db.NAIImgConfig.InfoExtracted} - Reference Strength - - {DBState.db.NAIImgConfig.RefStrength} - - - - - Reference image - + + + Reference Strength Multiple + {/if} {/if} @@ -491,16 +604,16 @@ ElevenLabs API key - + VOICEVOX URL - + OpenAI Key NovelAI API key - + Huggingface Key @@ -841,4 +954,4 @@ {/if} -{/if} \ No newline at end of file +{/if} diff --git a/src/lib/UI/GUI/OptionInput.svelte b/src/lib/UI/GUI/OptionInput.svelte index 2112e776..4494e294 100644 --- a/src/lib/UI/GUI/OptionInput.svelte +++ b/src/lib/UI/GUI/OptionInput.svelte @@ -1,7 +1,7 @@