Skip to content

GLSL (v4.0.0 Alpha) Experimental

Pre-release
Pre-release
Compare
Choose a tag to compare
@bloc97 bloc97 released this 26 Jul 20:50
· 70 commits to master since this release

Huge quality improvement on ITW (In the wild) anime. Previous super resolution methods were suited for artificially downscaled anime, while anime found in the wild exhibit a large amounts of variance. We propose and develop a method to correct this distribution shift for already existing CNN upscalers and that can be applied to non-Anime4K upscalers (The upscaling shaders bundled in this version are the exact same as v3.1). The line reconstruction algorithm will be explained in a future informal paper.

Some small issues such as occasional ghosting or ringing will need to be fixed before official release.

The three versions of line reconstruction shaders can be used as follows in mpv's input.conf:
CTRL+2 works on almost all 1080p anime, if blurriness and aliasing is noticeable, use the heavier version (CTRL+3), if ghosting and ringing is visible, use the lighter version (CTRL+1).
For downscaled 720/480p anime, start with CTRL+1, for native standard definition anime, start with CTRL+2.

input.conf for 4K screens (screen size, not anime size)

CTRL+1 change-list glsl-shaders set "~~/shaders/Anime4K_Line_Reconstruction_Light_L.glsl;~~/shaders/Anime4K_Upscale_CNN_L_x2_Denoise.glsl;~~/shaders/Anime4K_Auto_Downscale_Pre_x4.glsl;~~/shaders/Anime4K_Line_Reconstruction_Heavy_L.glsl;~~/shaders/Anime4K_Upscale_CNN_M_x2_Denoise.glsl;~~/shaders/Anime4K_DeRing.glsl;"
CTRL+2 change-list glsl-shaders set "~~/shaders/Anime4K_Line_Reconstruction_Medium_L.glsl;~~/shaders/Anime4K_Upscale_CNN_L_x2_Denoise.glsl;~~/shaders/Anime4K_Auto_Downscale_Pre_x4.glsl;~~/shaders/Anime4K_Line_Reconstruction_Heavy_L.glsl;~~/shaders/Anime4K_Upscale_CNN_M_x2_Denoise.glsl;~~/shaders/Anime4K_DeRing.glsl;"
CTRL+3 change-list glsl-shaders set "~~/shaders/Anime4K_Line_Reconstruction_Heavy_L.glsl;~~/shaders/Anime4K_Upscale_CNN_L_x2_Denoise.glsl;~~/shaders/Anime4K_Auto_Downscale_Pre_x4.glsl;~~/shaders/Anime4K_Line_Reconstruction_Medium_L.glsl;~~/shaders/Anime4K_Upscale_CNN_M_x2_Denoise.glsl;~~/shaders/Anime4K_DeRing.glsl;"
CTRL+0 change-list glsl-shaders clr ""

input.conf for 1080p screens (screen size, not anime size)

CTRL+1 change-list glsl-shaders set "~~/shaders/Anime4K_Line_Reconstruction_Light_L.glsl;~~/shaders/Anime4K_Upscale_CNN_L_x2_Denoise.glsl;~~/shaders/Anime4K_Auto_Downscale_Pre_x4.glsl;~~/shaders/Anime4K_Line_Reconstruction_Medium_L.glsl;~~/shaders/Anime4K_Upscale_CNN_M_x2_Denoise.glsl;~~/shaders/Anime4K_DeRing.glsl;"
CTRL+2 change-list glsl-shaders set "~~/shaders/Anime4K_Line_Reconstruction_Medium_L.glsl;~~/shaders/Anime4K_Upscale_CNN_L_x2_Denoise.glsl;~~/shaders/Anime4K_Auto_Downscale_Pre_x4.glsl;~~/shaders/Anime4K_Line_Reconstruction_Light_L.glsl;~~/shaders/Anime4K_Upscale_CNN_M_x2_Denoise.glsl;~~/shaders/Anime4K_DeRing.glsl;"
CTRL+3 change-list glsl-shaders set "~~/shaders/Anime4K_Line_Reconstruction_Heavy_L.glsl;~~/shaders/Anime4K_Upscale_CNN_L_x2_Denoise.glsl;~~/shaders/Anime4K_Auto_Downscale_Pre_x4.glsl;~~/shaders/Anime4K_Line_Reconstruction_Light_L.glsl;~~/shaders/Anime4K_Upscale_CNN_M_x2_Denoise.glsl;~~/shaders/Anime4K_DeRing.glsl;"
CTRL+0 change-list glsl-shaders clr ""

Note: This version is only compatible with v3.1 and older shaders. Mixing with newer shaders might cause issues.