Home

Awesome

Ultimate SD Upscale extension for AUTOMATIC1111 Stable Diffusion web UI

Now you have the opportunity to use a large denoise (0.3-0.5) and not spawn many artifacts. Works on any video card, since you can use a 512x512 tile size and the image will converge.

News channel: https://t.me/usdunews

Instructions

All instructions can be found on the project's wiki.

Refs

https://github.com/ssitu/ComfyUI_UltimateSDUpscale - Implementation for ComfyUI

Examples

More on wiki page

<details> <summary>E1</summary> Original image

Original

2k upscaled. Tile size: 512, Padding: 32, Mask blur: 16, Denoise: 0.4 2k upscale

</details> <details> <summary>E2</summary> Original image

Original

2k upscaled. Tile size: 768, Padding: 55, Mask blur: 20, Denoise: 0.35 2k upscale

4k upscaled. Tile size: 768, Padding: 55, Mask blur: 20, Denoise: 0.35 4k upscale

</details> <details> <summary>E3</summary> Original image

Original

4k upscaled. Tile size: 768, Padding: 55, Mask blur: 20, Denoise: 0.4 4k upscale

</details>

API Usage

{
"script_name" : "ultimate sd upscale",
"script_args" : [
	null, // _ (not used)
	512, // tile_width
	512, // tile_height
	8, // mask_blur
	32, // padding
	64, // seams_fix_width
	0.35, // seams_fix_denoise
	32, // seams_fix_padding
	0, // upscaler_index
	true, // save_upscaled_image a.k.a Upscaled
	0, // redraw_mode
	false, // save_seams_fix_image a.k.a Seams fix
	8, // seams_fix_mask_blur
	0, // seams_fix_type
	0, // target_size_type
	2048, // custom_width
	2048, // custom_height
	2 // custom_scale
]
}

upscaler_index

Value
0None
1Lanczos
2Nearest
3ESRGAN_4x
4LDSR
5R-ESRGAN_4x+
6R-ESRGAN 4x+ Anime6B
7ScuNET GAN
8ScuNET PSNR
9SwinIR 4x

redraw_mode

Value
0Linear
1Chess
2None

seams_fix_mask_blur

Value
0None
1BAND_PASS
2HALF_TILE
3HALF_TILE_PLUS_INTERSECTIONS

seams_fix_type

Value
0None
1Band pass
2Half tile offset pass
3Half tile offset pass + intersections

seams_fix_type

Value
0From img2img2 settings
1Custom size
2Scale from image size