File size: 1,232 Bytes
660842c 4905b6b 660842c 4905b6b 660842c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
export type GenerationStatus =
| "idle"
| "generating"
| "upscaling"
| "cropping"
| "finished"
| "error"
export type Settings = {
huggingfaceApiKey: string
huggingfaceInferenceApiModel: string
huggingfaceInferenceApiModelTrigger: string
huggingfaceInferenceApiFileType: string
}
export interface StableDiffusionParams {
prompt: string
negativePrompt: string
guidanceScale: number
seed: number
width: number
height: number
numInferenceSteps: number
hfApiKey: string
}
export interface StableCascadeParams {
prompt: string
negativePrompt: string
// between 0.1 and 15 (default 4)
guidanceScale: number
seed: number
width: number
height: number
// between 1 and 50 (default 20)
nbPriorInferenceSteps: number
// between 1 and 50 (default 10)
nbDecoderInferenceSteps: number
}
export type UpscalingParams = {
imageAsBase64: string
prompt: string
negativePrompt: string
scaleFactor: number
seed: number
// label="Sampling steps", value=6, minimum=1, maximum=25, step=1
// we wanna keep this one low (this is LCM after all)
// but values like 10 also give nice results
nbSteps: number
}
export type BackgroundRemovalParams = {
imageAsBase64: string
} |