1
0
Fork 0
mirror of synced 2024-05-20 12:52:21 +12:00

Update README.md

This commit is contained in:
nagadomi 2015-11-15 09:40:32 +09:00
parent b5db84d42e
commit f0bb9d4f21

View file

@ -1,7 +1,3 @@
# dev branch
This branch is work in progress.
# waifu2x
Image Super-Resolution for anime-style-art using Deep Convolutional Neural Networks.
@ -23,16 +19,11 @@ waifu2x is inspired by SRCNN [1]. 2D character picture (HatsuneMiku) is licensed
## Public AMI
```
AMI ID: ami-0be01e4f
AMI NAME: waifu2x-server
Instance Type: g2.2xlarge
Region: US West (N.California)
OS: Ubuntu 14.04
User: ubuntu
Created at: 2015-08-12
TODO
```
## Third Party Software
[Third-Party](https://github.com/nagadomi/waifu2x/wiki/Third-Party)
## Dependencies
@ -41,6 +32,7 @@ Created at: 2015-08-12
- NVIDIA GPU
### Platform
- [Torch7](http://torch.ch/)
- [NVIDIA CUDA](https://developer.nvidia.com/cuda-toolkit)
@ -62,7 +54,7 @@ See: [NVIDIA CUDA Getting Started Guide for Linux](http://docs.nvidia.com/cuda/c
Download [CUDA](http://developer.nvidia.com/cuda-downloads)
```
sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb
sudo apt-get update
sudo apt-get install cuda
```
@ -82,12 +74,18 @@ And install luarocks packages.
luarocks install lua-csnappy
luarocks install md5
luarocks install uuid
PREFIX=$HOME/torch/install luarocks install turbo # if you need web application
PREFIX=$HOME/torch/install luarocks install turbo # if you need to use web application
```
#### Getting waifu2x
```
git clone --depth 1 https://github.com/nagadomi/waifu2x.git
```
#### Validation
Test the waifu2x command line tool.
Testing the waifu2x command line tool.
```
th waifu2x.lua
```
@ -122,11 +120,11 @@ th waifu2x.lua -m noise_scale -noise_level 1 -i input_image.png -o output_image.
th waifu2x.lua -m noise_scale -noise_level 2 -i input_image.png -o output_image.png
```
See also `images/gen.sh`.
See also `th waifu2x.lua -h`.
### Video Encoding
\* `avconv` is `ffmpeg` on Ubuntu 14.04.
\* `avconv` is alias of `ffmpeg` on Ubuntu 14.04.
Extracting images and audio from a video. (range: 00:09:00 ~ 00:12:00)
```
@ -160,7 +158,7 @@ Genrating a file list.
```
find /path/to/image/dir -name "*.png" > data/image_list.txt
```
(You should use PNG! In my case, waifu2x is trained with 3000 high-resolution-noise-free-PNG images.)
You should use noise free images. In my case, waifu2x is trained with 6000 high-resolution-noise-free-PNG images.
Converting training data.
```