import { type ExtrasSingleImageRequest } from "https://deno.land/x/stable_diffusion_client@0.0.1/models.ts";
ExtrasSingleImageRequest
Properties
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.
GFPGAN Visibility Sets the visibility of GFPGAN, values should be between 0 and 1. Min Value 0 Max Value 1 default Value 0
CodeFormer Visibility Sets the visibility of CodeFormer, values should be between 0 and 1. Min Value 0 Max Value 1 default Value 0
CodeFormer Weight Sets the weight of CodeFormer, values should be between 0 and 1. Min Value 0 Max Value 1 default Value 0
Upscaling Factor By how much to upscale the image, only used when resize_mode=0. Min Value 1 Max Value 4 default Value 2
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"
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"
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