Made it easy to add control images to the samples in the UI

This commit is contained in:
Jaret Burkett
2025-07-17 12:00:48 -06:00
parent e25d2feddf
commit 8610c6ed7f
16 changed files with 400 additions and 57 deletions

View File

@@ -133,12 +133,27 @@ export interface ModelConfig {
model_kwargs: { [key: string]: any };
}
export interface SampleItem {
prompt: string;
width?: number
height?: number;
neg?: string;
seed?: number;
guidance_scale?: number;
sample_steps?: number;
fps?: number;
num_frames?: number;
ctrl_img?: string | null;
ctrl_idx?: number;
}
export interface SampleConfig {
sampler: string;
sample_every: number;
width: number;
height: number;
prompts: string[];
prompts?: string[];
samples: SampleItem[];
neg: string;
seed: number;
walk_seed: boolean;