Skip to main content
Module

x/stable_diffusion_client/mod.ts>SDModels.ExtrasSingleImageRequest

stable-diffusion-webui Client writen in Deno
interface SDModels.ExtrasSingleImageRequest
import { type SDModels } from "https://deno.land/x/stable_diffusion_client@0.0.3/mod.ts";
const { ExtrasSingleImageRequest } = SDModels;

ExtrasSingleImageRequest

Properties

optional
resize_mode: 0 | 1

Resize Mode Sets the resize mode: 0 to upscale by upscaling_resize amount, 1 to upscale up to upscaling_resize_h x upscaling_resize_w.

optional
show_extras_results: boolean

Show results Should the backend return the generated image? default Value true

optional
gfpgan_visibility: number

GFPGAN Visibility Sets the visibility of GFPGAN, values should be between 0 and 1. Min Value 0 Max Value 1 default Value 0

optional
codeformer_visibility: number

CodeFormer Visibility Sets the visibility of CodeFormer, values should be between 0 and 1. Min Value 0 Max Value 1 default Value 0

optional
codeformer_weight: number

CodeFormer Weight Sets the weight of CodeFormer, values should be between 0 and 1. Min Value 0 Max Value 1 default Value 0

optional
upscaling_resize: number

Upscaling Factor By how much to upscale the image, only used when resize_mode=0. Min Value 1 Max Value 4 default Value 2

optional
upscaling_resize_w: number

Target Width Target width for the upscaler to hit. Only used when resize_mode=1. Min Value 1

optional
upscaling_resize_h: number

Target Height Target height for the upscaler to hit. Only used when resize_mode=1. Min Value 1

optional
upscaling_crop: boolean

Crop to fit Should the upscaler crop the image to fit in the choosen size? default Value true

optional
upscaler_1: string

Main upscaler The name of the main upscaler to use, it has to be one of this list: None , Lanczos , Nearest , LDSR , ScuNET GAN , ScuNET PSNR , SwinIR 4x , ESRGAN_4x , R-ESRGAN 4x+ , R-ESRGAN 4x+ Anime6B default Value "None"

optional
upscaler_2: string

Secondary upscaler The name of the secondary upscaler to use, it has to be one of this list: None , Lanczos , Nearest , LDSR , ScuNET GAN , ScuNET PSNR , SwinIR 4x , ESRGAN_4x , R-ESRGAN 4x+ , R-ESRGAN 4x+ Anime6B default Value "None"

optional
extras_upscaler_2_visibility: number

Secondary upscaler visibility Sets the visibility of secondary upscaler, values should be between 0 and 1. Min Value 0 Max Value 1 default Value 0

optional
upscale_first: boolean

Upscale first Should the upscaler run before restoring faces? default Value false

optional
image: string

Image Image to work on, must be a Base64 string containing the image's data. default Value ""