add slide and appendix
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
*~
|
||||
cache/*.png
|
||||
waifu2x.log
|
||||
|
|
12
appendix/cache_cleaner.lua
Normal file
|
@ -0,0 +1,12 @@
|
|||
require 'pl'
|
||||
|
||||
CACHE_DIR="cache"
|
||||
TTL = 3600 * 24
|
||||
|
||||
local files = dir.getfiles(CACHE_DIR, "*.png")
|
||||
local now = os.time()
|
||||
for i, f in pairs(files) do
|
||||
if now - path.getmtime(f) > TTL then
|
||||
file.delete(f)
|
||||
end
|
||||
end
|
4
appendix/run-web.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/zsh
|
||||
# waifu2x daemon script
|
||||
source /home/ubuntu/.zshrc
|
||||
stdbuf -o 0 th web.lua >> ./waifu2x.log 2>&1
|
11
appendix/waifu2x.upstart.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
# waifu2x upstart script
|
||||
|
||||
description "waifu2x"
|
||||
author "nagadomi@nurs.or.jp"
|
||||
start on runlevel [2345]
|
||||
stop on runlevel [016]
|
||||
setuid ubuntu
|
||||
setgid ubuntu
|
||||
chdir /home/ubuntu/waifu2x
|
||||
exec ./appendix/run-web.sh
|
||||
respawn
|
0
data/.gitkeep
Normal file
7
images/gen.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
th waifu2x.lua -noise_level 1 -m noise_scale -i images/miku_small.png -o images/miku_small_waifu2x.png
|
||||
th waifu2x.lua -noise_level 2 -m noise_scale -i images/miku_small_noisy.png -o images/miku_small_noisy_waifu2x.png
|
||||
th waifu2x.lua -noise_level 2 -m noise -i images/miku_noisy.png -o images/miku_noisy_waifu2x.png
|
||||
th waifu2x.lua -noise_level 2 -m noise_scale -i images/miku_CC_BY-NC_noisy.jpg -o images/miku_CC_BY-NC_noisy_waifu2x.png
|
||||
th waifu2x.lua -noise_level 2 -m noise -i images/lena.png -o images/lena_waifu2x.png
|
BIN
images/lena.png
Normal file
After Width: | Height: | Size: 460 KiB |
BIN
images/lena_waifu2x.png
Normal file
After Width: | Height: | Size: 379 KiB |
BIN
images/miku_CC_BY-NC.jpg
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
images/miku_CC_BY-NC_noisy.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
images/miku_CC_BY-NC_noisy_lanczos3.png
Normal file
After Width: | Height: | Size: 722 KiB |
BIN
images/miku_CC_BY-NC_noisy_waifu2x.png
Normal file
After Width: | Height: | Size: 554 KiB |
BIN
images/miku_bg.png
Normal file
After Width: | Height: | Size: 157 KiB |
BIN
images/miku_noisy.jpg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
images/miku_noisy.png
Normal file
After Width: | Height: | Size: 148 KiB |
BIN
images/miku_noisy_selective_blur.png
Normal file
After Width: | Height: | Size: 148 KiB |
BIN
images/miku_noisy_waifu2x.png
Normal file
After Width: | Height: | Size: 149 KiB |
BIN
images/miku_small.png
Normal file
After Width: | Height: | Size: 53 KiB |
BIN
images/miku_small_hq2x.png
Normal file
After Width: | Height: | Size: 150 KiB |
BIN
images/miku_small_lanczos3.png
Normal file
After Width: | Height: | Size: 177 KiB |
BIN
images/miku_small_noisy.jpg
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
images/miku_small_noisy.png
Normal file
After Width: | Height: | Size: 49 KiB |
BIN
images/miku_small_noisy_lanczos3.png
Normal file
After Width: | Height: | Size: 162 KiB |
BIN
images/miku_small_noisy_waifu2x.png
Normal file
After Width: | Height: | Size: 130 KiB |
BIN
images/miku_small_waifu2x.png
Normal file
After Width: | Height: | Size: 135 KiB |
BIN
images/slide.odp
Normal file
BIN
images/slide.png
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
images/slide_noise_reduction.png
Normal file
After Width: | Height: | Size: 493 KiB |
BIN
images/slide_result.png
Normal file
After Width: | Height: | Size: 372 KiB |
BIN
images/slide_tone.png
Normal file
After Width: | Height: | Size: 180 KiB |
BIN
images/slide_upscaling.png
Normal file
After Width: | Height: | Size: 377 KiB |
BIN
images/tone.png
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
images/tone_waifu2x.png
Normal file
After Width: | Height: | Size: 114 KiB |
BIN
images/tone_waifu2x_downscale.png
Normal file
After Width: | Height: | Size: 28 KiB |