Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 3.2 KB

anime_model.md

File metadata and controls

68 lines (48 loc) · 3.2 KB

Anime Model

✅ We add RealESRGAN_x4plus_anime_6B.pth, which is optimized for anime images with much smaller model size.

The following is a video comparison with sliding bar. You may need to use the full-screen mode for better visual quality, as the original image is large; otherwise, you may encounter aliasing issue.

RealESRGAN-anime.mp4

How to Use

PyTorch Inference

Pre-trained models: RealESRGAN_x4plus_anime_6B

# download model
wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth -P experiments/pretrained_models
# inference
python inference_realesrgan.py -n RealESRGAN_x4plus_anime_6B -i inputs

ncnn Executable File

Download the latest portable Windows / Linux / MacOS executable files for Intel/AMD/Nvidia GPU.

Taking the Windows as example, run:

./realesrgan-ncnn-vulkan.exe -i input.jpg -o output.png -n realesrgan-x4plus-anime

Comparisons with waifu2x

We compare Real-ESRGAN-anime with waifu2x. We use the -n 2 -s 4 for waifu2x.

Comparisons with Sliding Bars

The following are video comparisons with sliding bar. You may need to use the full-screen mode for better visual quality, as the original image is large; otherwise, you may encounter aliasing issue.

Real-ESRGAN-anime-VS-input.mp4
Real-ESRGAN-anime-VS-input.mp4