mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
LoRA number input min/max restored
This commit is contained in:
committed by
psychedelicious
parent
0b605a745b
commit
4bc184ff16
@@ -80,7 +80,7 @@ const LoRAContent = memo(({ lora }: { lora: LoRA }) => {
|
||||
onChange={handleChange}
|
||||
min={DEFAULT_LORA_WEIGHT_CONFIG.sliderMin}
|
||||
max={DEFAULT_LORA_WEIGHT_CONFIG.sliderMax}
|
||||
step={DEFAULT_LORA_WEIGHT_CONFIG.coarseStep}
|
||||
step={DEFAULT_LORA_WEIGHT_CONFIG.fineStep}
|
||||
marks={DEFAULT_LORA_WEIGHT_CONFIG.marks.slice()}
|
||||
defaultValue={DEFAULT_LORA_WEIGHT_CONFIG.initial}
|
||||
isDisabled={!lora.isEnabled}
|
||||
@@ -90,7 +90,7 @@ const LoRAContent = memo(({ lora }: { lora: LoRA }) => {
|
||||
onChange={handleChange}
|
||||
min={DEFAULT_LORA_WEIGHT_CONFIG.numberInputMin}
|
||||
max={DEFAULT_LORA_WEIGHT_CONFIG.numberInputMax}
|
||||
step={DEFAULT_LORA_WEIGHT_CONFIG.coarseStep}
|
||||
step={DEFAULT_LORA_WEIGHT_CONFIG.fineStep}
|
||||
w={20}
|
||||
flexShrink={0}
|
||||
defaultValue={DEFAULT_LORA_WEIGHT_CONFIG.initial}
|
||||
|
||||
@@ -11,8 +11,8 @@ export const DEFAULT_LORA_WEIGHT_CONFIG = {
|
||||
sliderMin: -1,
|
||||
sliderMax: 2,
|
||||
marks: [-1, 0, 1, 2],
|
||||
numberInputMin: -1,
|
||||
numberInputMax: 2,
|
||||
numberInputMin: -10,
|
||||
numberInputMax: 10,
|
||||
fineStep: 0.01,
|
||||
coarseStep: 0.05,
|
||||
} as const;
|
||||
|
||||
Reference in New Issue
Block a user