Waifu Args
Waifu Args
Waifu Args
Personal
Open source
Business
Explore
6/17/16, 21:42
Pricing
Blog
Support
This repository
nagadomi / waifu2x
Code
Watch
Issues 23
Pull requests 0
Wiki
Pulse
401
Sign up
Sign in
Search
Star
Fork
5,924
695
Graphs
Branch: master
3 branches
3 releases
17 contributors
Find file
Clone or download
appendix
a month ago
assets
20 days ago
cache
first commit
data
Fix .gitignore
7 months ago
images
7 months ago
lib
a month ago
models
Revert anime_style_art_rgb/scale2.0x_model.t7
3 months ago
tools
3 months ago
webgen
.gitattributes
Add .gitattributes
7 months ago
.gitignore
Update .gitignore
7 months ago
LICENSE
NOTICE
Update NOTICE
README.md
convert_data.lua
7 months ago
train.lua
3 months ago
train.sh
3 months ago
train_photo.sh
3 months ago
train_ukbench.sh
7 months ago
waifu2x.lua
3 months ago
web.lua
a year ago
20 days ago
a year ago
4 months ago
3 days ago
a month ago
README.md
waifu2x
Image Super-Resolution for Anime-style art using Deep Convolutional Neural Networks. And it supports photo.
Demo-Application can be found at http://waifu2x.udp.jp/ .
https://github.com/nagadomi/waifu2x
Page 1 of 7
6/17/16, 21:42
Summary
Click to see the slide show.
https://github.com/nagadomi/waifu2x
Page 2 of 7
6/17/16, 21:42
References
waifu2x is inspired by SRCNN [1]. 2D character picture (HatsuneMiku) is licensed under CC BY-NC by piapro [2].
[1] Chao Dong, Chen Change Loy, Kaiming He, Xiaoou Tang, "Image Super-Resolution Using Deep Convolutional
Networks", http://arxiv.org/abs/1501.00092
[2] "For Creators", http://piapro.net/en_for_creators.html
Public AMI
Region: us-east-1 (N.Virginia)
AMI ID: ami-568f823c
AMI NAME: waifu2x-server
Instance Type: g2.2xlarge
OS: Ubuntu 14.04
User: ubuntu
Created at: 2016-03-22
See ~/README.md
Please update the git repo first.
https://github.com/nagadomi/waifu2x
Page 3 of 7
6/17/16, 21:42
git pull
Dependencies
Hardware
NVIDIA GPU
Platform
Torch7
NVIDIA CUDA
Installation
Setting Up the Command Line Tool Environment
(on Ubuntu 14.04)
Install CUDA
See: NVIDIA CUDA Getting Started Guide for Linux
Download CUDA
sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb
sudo apt-get update
sudo apt-get install cuda
Install Package
sudo apt-get install libsnappy-dev
sudo apt-get install libgraphicsmagick1-dev
Install Torch7
See: Getting started with Torch
https://github.com/nagadomi/waifu2x
Page 4 of 7
6/17/16, 21:42
Getting waifu2x
git clone --depth 1 https://github.com/nagadomi/waifu2x.git
Validation
Testing the waifu2x command line tool.
th waifu2x.lua
Web Application
th web.lua
2x Upscaling
th waifu2x.lua -m scale -i input_image.png -o output_image.png
Batch conversion
https://github.com/nagadomi/waifu2x
Page 5 of 7
6/17/16, 21:42
Video Encoding
* avconv is alias of ffmpeg on Ubuntu 14.04.
Extracting images and audio from a video. (range: 00:09:00 ~ 00:12:00)
mkdir frames
avconv -i data/raw.avi -ss 00:09:00 -t 00:03:00 -r 24 -f image2 frames/%06d.png
avconv -i data/raw.avi -ss 00:09:00 -t 00:03:00 audio.mp3
Data Preparation
Genrating a file list.
find /path/to/image/dir -name "*.png" > data/image_list.txt
You should use noise free images. In my case, waifu2x is trained with 6000 high-resolution-noise-free-PNG images.
Converting training data.
th convert_data.lua
https://github.com/nagadomi/waifu2x
Page 6 of 7
6/17/16, 21:42
Terms
Privacy
Security
https://github.com/nagadomi/waifu2x
Contact
Help
Status
API
Training
Shop
Blog
About
Page 7 of 7