An Android application for super-resolution & interpolation. Contains RealSR-NCNN, SRMD-NCNN, RealCUGAN-NCNN, Real-ESRGAN-NCNN, Waifu2x-NCNN, Anime4kcpp, neares
An Android application for super-resolution & interpolation. Contains RealSR-NCNN, SRMD-NCNN, RealCUGAN-NCNN, Real-ESRGAN-NCNN, Waifu2x-NCNN, Anime4kcpp, neares
RealSR-NCNN-Android is a simple Android application that based on Waifu2x-NCNN, SRMD-NCNN, RealCUGAN-NCNN, RealSR-NCNN, Real-ESRGAN, Anime4KCPP.
The application does not collect any private information from your device.
Download: Github Release
This repository contains 3 project:
nearest bilinear bicubic and avir lancir.Two ways of selecting files:
Select Image to select an imageTwo ways of running:
Run button and wait some time. The photo view will show the result when the program finish its work. If you like the result, you could click the Save button. help and get more info)input & output
RealSR-NCNN-Android-GUI could load extra models from sdcard automatily in ver 1.7.6. You could download more models from https://huggingface.co/tumuyan2/realsr-models .
Path for custom models (RealSR/ESRGAN/Waifu2x) and save.✨ ver 1.11 support mnn models. MNN could support more models than ncnn. ver 1.12 could use -c param or model file name to config the color space.
refer to https://mnn-docs.readthedocs.io/en/latest/tools/convert.html , you could convert ONNX, TFLITE, TorchScript, Tensorflow models to mnn format.
pip install mnnMNNConvert -f ONNX --modelFile "{onnx_path}" --MNNModel "{mnn_path}" --bizCode biz --fp16 --info --detectSparseSpeedUp4xabcdefg.mnn abc-x4-def.mnn or abc_4x_def.mnn, copy to your custom model folder. If the filename contains Grayscale Gray2YCbCr Gray2YUV YCbCr YUV, the App will apply these color space.Also you could convert ESRGAN pth models by yourself.
Download ESRGAN pytorch models from OpenModelDB and unzip it to somewhere.
Download cupscale and unzip it in your PC.
Convert pytorch models to ncnn. Open CupscaleData\bin\pth2ncnn, use pth2ncnn.exe to convert pth files to ncnn file.
Rename models, just like this:
models-Real-ESRGAN-AnimeSharp // directory should have a suffix of models-Real- or models-ESRGAN-
├─x4.bin // models name as x[n], n is scale
├─x4.paramAnother way to convert models:
Build RealSR-NCNN-Android-CLI by yourself or download assets.zip from github release page, the zip file contains models & ELF files. Unzip and put them to this folder, then build it with Android Studio.
The direct download link for current version: https://github.com/tumuyan/RealSR-NCNN-Android/releases/download/1.11.1/assets.zip
…This is a very simple tool, flexible and powerful, has the following shortcomings (and there are no plans for improvement):
Most of the C code is copied from Nihui, cause of the directory structure had to be adjusted, the original git was broken
No open issues yet, or sync has not completed.