Generation Settings
Модель, сэмплер, шаги, CFG, размер, пресеты. Pro · Изображения и генерация › Промпт и параметры
Установка
npx valyro-cli@latest login
npx valyro-cli@latest add generation-settings
npm install valyro-ui-pro
import 'valyro-ui-pro/styles.css';
import { GenerationSettings } from 'valyro-ui-pro';
Пропсы
| Prop | Type | Default | |
|---|---|---|---|
value | GenerationParams | Controlled value; use with onValueChange. | |
defaultValue | Partial<GenerationParams> | Initial settings (uncontrolled); missing keys use the defaults and the first model. | |
onValueChange | (params: GenerationParams) => void | Called with the new value when it changes. | |
models * | readonly CheckpointModel[] | Checkpoints offered by the model picker; the first is used when no model is set. Switching to one with another baseSize rescales width and height, keeping the aspect ratio. | |
samplers | readonly string[] | DEFAULT_SAMPLERS | Options of the Sampler select. |
schedulers | readonly string[] | DEFAULT_SCHEDULERS | Options of the Scheduler select. |
upscalers | readonly string[] | DEFAULT_UPSCALERS | Options of the Upscaler select shown when Hires. fix is on. |
presets | readonly GenerationPreset[] | Saved presets; the menu loads, saves and deletes them. | |
defaultPresets | readonly GenerationPreset[] | [] | Initial presets when uncontrolled. |
onPresetsChange | (presets: GenerationPreset[]) => void | Called with the new presets when it changes. | |
lastSeed | number | Seed of the last finished generation: lets the seed field reuse it. | |
layout | 'full' | 'compact' | 'full' | compact is dense, for narrow sidebars and graph nodes. Both layouts keep their fields at the small control height (32 px), so selects, number fields, size and seed line up. |
defaultAdvancedOpen | boolean | false | Open the Advanced section initially. |
disabled | boolean | false | Disables every control, including the presets menu. |
locale | string | BCP 47 locale for numbers and dates; defaults to the ThemeProvider's, then the browser's. | |
labels | Partial<GenerationSettingsLabels> | Overrides for the built-in English text; keys left out keep their defaults. |
Похожие компоненты
- Prompt Editor — Промпт и негатив: веса, LoRA, автодополнение, токены
- Aspect Ratio Picker — Соотношение сторон и точный размер
- Seed Input — Сид: случайный, фиксированный, инкремент
- LoRA Stack — Стек LoRA: силы, переключатели, порядок, триггеры
- Style Presets — Карточки стилей с превью и весами
- Reference Image Input — Референс для img2img и ControlNet
- Generation Progress — Шаги, ETA, живое латентное превью, очередь
- Image Result Grid — Галерея результатов, действия и лайтбокс
- Image Compare — Сравнение до/после: шторка, рядом, наложение
- Inpaint Canvas — Маска для инпейнтинга и расширение холста
- Generation History — История генераций по дням с фильтрами
- Image Adjustments — Цветокоррекция: загрузка, вписывание и семь ползунков с фильтром
Назад: Prompt Editor · Далее: Aspect Ratio Picker · Весь раздел «Изображения и генерация»