A look at nagadomi/waifu2x: 28.2k stars on GitHub, written primarily in Lua. Image Super-Resolution for Anime-Style Art
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Notes: If you have cuDNN library, than you can use cuDNN with -force_cudnn 1 option. cuDNN is too much faster than default kernel. If you got GPU out of memory error, you can avoid it with -crop_size option (e.g. -crop_size 128).
The output format supports %s and %d(e.g. %06d). %s will be replaced the basename of the source filename. %d will be replaced a sequence number.
For example, when input filename is piyo.png, %s_%03d.png will be replaced piyo_001.png.
See also th waifu2x.lua -h.
Using photo model
Please add -model_dir models/photo to command line option, if you want to use photo model.
For example,
Note1: If you have cuDNN library, you can use cudnn kernel with -backend cudnn option. And, you can convert trained cudnn model to cunn model with tools/rebuild.lua.
Note2: The command that was used to train for waifu2x's pretrained models is available at appendix/train_upconv_7_art.sh, appendix/train_upconv_7_photo.sh. Maybe it is helpful.
You can check the performance of model with models/my_model/noise1_scale2.0x_best.png.
Docker
( Docker image is available at https://hub.docker.com/r/nagadomi/waifu2x )
Requires nvidia-docker.
docker build -t waifu2x .
docker run --gpus all -p 8812:8812 waifu2x th web.lua
docker run --gpus all -v `pwd`/images:/images waifu2x th waifu2x.lua -force_cudnn 1 -m scale -scale 2 -i /images/miku_small.png -o /images/output.png
Note that running waifu2x in without JIT caching is very slow, which is what would happen if you use docker.
For a workaround, you can mount a host volume to the CUDA_CACHE_PATH, for instance,
docker run --gpus all -v $PWD/ComputeCache:/root/.nv/ComputeCache waifu2x th waifu2x.lua --help
The most recent commit recorded on nagadomi/waifu2x was 3.6 years ago, based on the GitHub push timestamp. The repository has 2.6k forks — one of the better signals of community interest.
How many stars does nagadomi/waifu2x have?
nagadomi/waifu2x has 28.2k GitHub stars — refresh the page for the live number, or check github.com/nagadomi/waifu2x. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is nagadomi/waifu2x open source?
Yes — nagadomi/waifu2x ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/nagadomi/waifu2x.
What is nagadomi/waifu2x?
nagadomi/waifu2x (nagadomi/waifu2x) is a Lua project on GitHub. From the project's own README: Image Super-Resolution for Anime-Style Art
What language is nagadomi/waifu2x written in?
nagadomi/waifu2x is written primarily in Lua. GitHub's language field is based on the largest share of bytes in the default branch.
What license does nagadomi/waifu2x use?
nagadomi/waifu2x is released under the MIT license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about nagadomi/waifu2x?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/nagadomi/waifu2x is the definitive source.
Read full README in the tab above.
Want a second opinion on waifu2x?
Ask an AI that can read this page — one click and you get its take on waifu2x.