fix: remove dupilacted nai settings input

This commit is contained in:
niceandneat
2025-05-17 10:15:57 +09:00
parent 0a792db7c2
commit 74a463793d
2 changed files with 1 additions and 16 deletions

View File

@@ -123,7 +123,7 @@
} }
// End HypaV3 // End HypaV3
let imageModel = ''; let imageModel = $state('');
// add init NAI V4 // add init NAI V4
// if(DBState.db.NAIImgConfig.autoSmea === undefined) DBState.db.NAIImgConfig.autoSmea = false; // if(DBState.db.NAIImgConfig.autoSmea === undefined) DBState.db.NAIImgConfig.autoSmea = false;
@@ -277,13 +277,6 @@
<span class="text-textcolor">CFG rescale</span> <span class="text-textcolor">CFG rescale</span>
<NumberInput size="sm" marginBottom min={0} max={1} bind:value={DBState.db.NAIImgConfig.cfg_rescale}/> <NumberInput size="sm" marginBottom min={0} max={1} bind:value={DBState.db.NAIImgConfig.cfg_rescale}/>
<span class="text-textcolor">Noise Schedule</span>
<SelectInput className="mt-2 mb-4" bind:value={DBState.db.NAIImgConfig.noise_schedule}>
<OptionInput value="karras">karras</OptionInput>
<OptionInput value="exponential">exponential</OptionInput>
<OptionInput value="polyexponential">polyexponential</OptionInput>
</SelectInput>
{#if !DBState.db.NAII2I || DBState.db.NAIImgConfig.sampler !== 'ddim_v3'} {#if !DBState.db.NAII2I || DBState.db.NAIImgConfig.sampler !== 'ddim_v3'}
<Check bind:check={DBState.db.NAIImgConfig.sm} name="Use SMEA"/> <Check bind:check={DBState.db.NAIImgConfig.sm} name="Use SMEA"/>
{:else if DBState.db.NAIImgModel === 'nai-diffusion-4-full' {:else if DBState.db.NAIImgModel === 'nai-diffusion-4-full'
@@ -294,11 +287,6 @@
{#if DBState.db.NAIImgModel === 'nai-diffusion-4-full' {#if DBState.db.NAIImgModel === 'nai-diffusion-4-full'
|| DBState.db.NAIImgModel === 'nai-diffusion-4-curated-preview'} || DBState.db.NAIImgModel === 'nai-diffusion-4-curated-preview'}
<span class="text-textcolor">Prompt Guidance Rescale</span>
<SliderInput marginBottom min={0} max={1} step={0.02} fixed={2} bind:value={DBState.db.NAIImgConfig.cfg_rescale} />
<Check bind:check={DBState.db.NAIImgConfig.autoSmea} name='Auto Smea'/> <Check bind:check={DBState.db.NAIImgConfig.autoSmea} name='Auto Smea'/>
<Check bind:check={DBState.db.NAIImgConfig.use_coords} name='Use coords'/> <Check bind:check={DBState.db.NAIImgConfig.use_coords} name='Use coords'/>
<Check bind:check={DBState.db.NAIImgConfig.legacy_uc} name='Use legacy uc'/> <Check bind:check={DBState.db.NAIImgConfig.legacy_uc} name='Use legacy uc'/>

View File

@@ -310,9 +310,6 @@ export function setDatabase(data:Database){
legacy_uc:false, legacy_uc:false,
}; };
} }
if(checkNullish(data.NAIImgConfig.cfg_rescale)){
data.NAIImgConfig.cfg_rescale = 0;
}
if(checkNullish(data.customTextTheme)){ if(checkNullish(data.customTextTheme)){
data.customTextTheme = { data.customTextTheme = {
FontColorStandard: "#f8f8f2", FontColorStandard: "#f8f8f2",