Skip to content

RA Shaders

bloc97 edited this page May 29, 2020 · 4 revisions

Example (Degraded / Processed)

Files

Anime4K_RA_CNN_M.glsl
Anime4K_RA_CNN_L.glsl
Anime4K_RA_CNN_UL.glsl
Anime4K_RA_DoG.glsl

Description

Tries to reduce the magnitude of resampling artifacts caused by non-linear resampling. E.g. ringing, aliasing.

The recommended version to use is Anime4K_RA_CNN_L.glsl for mid/high end GPUs and Anime4K_RA_CNN_M.glsl for less powerful GPUs. Only use Anime4K_RA_CNN_UL.glsl if you have a very high end GPU like Vega 64 or RTX 2080.

Related shaders

Settings

#define STRENGTH 1 //Strength of artifact reduction, high values might blur some edges.

Special considerations

CNN_M and CNN_L variants introduces small amounts of checkerboard artifacts due to the pixelshuffle layer and the low parameter count. This is usually unnoticeable under live conditions.

As higher resolution anime (E.g. 1080p) have less sub-pixel detail, it is possible to use low quality variants such as Anime4K_RA_DoG.glsl for better speed without compromising much quality. The CNN shaders are best at processing sub-pixel detail, and they are usually overkill for 1080p, especially if a previous upscaling pass was used (eg. 720p->1080p).

Clone this wiki locally