Skip to content

Upscale Shaders

bloc97 edited this page May 28, 2020 · 26 revisions

Example (Original / Processed)

Files

Anime4K_Upscale_CNN_M_x2.glsl
Anime4K_Upscale_CNN_L_x2.glsl
Anime4K_Upscale_CNN_UL_x2.glsl
Anime4K_Upscale_DoG_x2.glsl
Anime4K_Upscale_Original_x2.glsl

Description

Performs super-resolution. Doubles image size with the expectation that the low resolution image is artifact-free. (I.e. No noise, blur or any other degradation.)

Related shaders

Upscale+Deblur Shaders
Upscale+Denoise Shaders

Special considerations

Any degradation remaining on the image will be amplified. It is better to use other shaders first to reduce noise or blur.

CNN_M and CNN_L variants also introduces small amounts of checkerboard artifacts due to the pixelshuffle layer and the low parameter count.

As this shader doubles the image size and quadruples the number of pixels, other shaders placed after this will be 4x slower.

Anime4K_Auto_Downscale_Pre_x4.glsl can be used between the first pass and the second pass of upscaling for 1440p/4K monitors. This shader downscales the intermediate image so that the second upscaling pass does not upscale beyond your screen size, wasting processing power.

Clone this wiki locally