Artoriuz / ArtCNN

Super-Resolution Convolutional Neural Networks as GLSL shaders for mpv
MIT License
109 stars 2 forks source link

ArtCNN

Overview

ArtCNN is a collection of SISR CNNs optimised for anime content.

Two distinct architectures are currently offered:

The R architecture is offered in 2 sizes:

The C architecture is offered in 4 sizes:

Regarding the suffixes:

You may occasionaly find some models under the "Experiments" directory. This is meant to serve as a testing ground for future models.

Training Details

The luma models are trained on an anime dataset containing images from the following sources:

The Chroma models are trained on DIV2K+Manga109.

The images are split into smaller 256x256 patches and downsampled with the box filter. The L1 loss function is used alongside the Adam optimiser. The models are trained using Keras 3 with its JAX backend.

mpv Instructions

Add something like this to your mpv config:

glsl-shader="path/to/shader/ArtCNN_C4F16_DS_CMP.glsl"

VapourSynth Instructions

ArtCNN is natively supported by vs-mlrt. Please follow the instructions found there.

Alternatively, can also run the GLSL shaders with vs-placebo.

ONNX models should be generally preferred over their GLSL counterparts for both quality and performance reasons.