Add nai cfg_rescale, noise_schedule options settings (#835)

# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions? -
I've checked web version only.
- [x] Have you added type definitions?

# Description

Added the ability to configure the `cfg_rescale` and `noise_schedule`
properties in the NovelAI settings.

# Example


![image](https://github.com/user-attachments/assets/437984aa-7612-4a38-9d34-311faf20ced4)
This commit is contained in:
kwaroran
2025-04-28 15:43:41 +09:00
committed by GitHub
3 changed files with 19 additions and 2 deletions

View File

@@ -26,8 +26,10 @@
width: 512,
height: 512,
sampler: 'k_euler',
noise_schedule: 'native',
steps: 100,
scale: 1,
cfg_rescale: 0,
sm: false,
sm_dyn: false,
strength: 0.5,
@@ -245,10 +247,21 @@
</SelectInput>
{/if}
<span class="text-textcolor">Noise Schedule</span>
<SelectInput className="mt-2 mb-4" bind:value={DBState.db.NAIImgConfig.noise_schedule}>
<OptionInput value="" >Choose...</OptionInput>
<OptionInput value="native" >native</OptionInput>
<OptionInput value="karras" >karras</OptionInput>
<OptionInput value="exponential" >exponential</OptionInput>
<OptionInput value="polyexponential" >polyexponential</OptionInput>
</SelectInput>
<span class="text-textcolor">steps</span>
<NumberInput size="sm" marginBottom min={0} max={2048} bind:value={DBState.db.NAIImgConfig.steps}/>
<span class="text-textcolor">CFG scale</span>
<NumberInput size="sm" marginBottom min={0} max={2048} bind:value={DBState.db.NAIImgConfig.scale}/>
<span class="text-textcolor">CFG rescale</span>
<NumberInput size="sm" marginBottom min={0} max={1} bind:value={DBState.db.NAIImgConfig.cfg_rescale}/>
{#if !DBState.db.NAII2I || DBState.db.NAIImgConfig.sampler !== 'ddim_v3'}
<Check bind:check={DBState.db.NAIImgConfig.sm} name="Use SMEA"/>