ValyroUI English version

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';

Пропсы

PropTypeDefault
valueGenerationParamsControlled value; use with onValueChange.
defaultValuePartial<GenerationParams>Initial settings (uncontrolled); missing keys use the defaults and the first model.
onValueChange(params: GenerationParams) => voidCalled 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.
samplersreadonly string[]DEFAULT_SAMPLERSOptions of the Sampler select.
schedulersreadonly string[]DEFAULT_SCHEDULERSOptions of the Scheduler select.
upscalersreadonly string[]DEFAULT_UPSCALERSOptions of the Upscaler select shown when Hires. fix is on.
presetsreadonly GenerationPreset[]Saved presets; the menu loads, saves and deletes them.
defaultPresetsreadonly GenerationPreset[][]Initial presets when uncontrolled.
onPresetsChange(presets: GenerationPreset[]) => voidCalled with the new presets when it changes.
lastSeednumberSeed 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.
defaultAdvancedOpenbooleanfalseOpen the Advanced section initially.
disabledbooleanfalseDisables every control, including the presets menu.
localestringBCP 47 locale for numbers and dates; defaults to the ThemeProvider's, then the browser's.
labelsPartial<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 · Весь раздел «Изображения и генерация»