1
0
Fork 0
mirror of synced 2024-05-09 07:22:19 +12:00

add slide and appendix

This commit is contained in:
nagadomi 2015-05-17 03:59:49 +09:00
parent 83548d7494
commit 243e9044cd
34 changed files with 35 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
*~
cache/*.png
waifu2x.log

View 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
View file

@ -0,0 +1,4 @@
#!/bin/zsh
# waifu2x daemon script
source /home/ubuntu/.zshrc
stdbuf -o 0 th web.lua >> ./waifu2x.log 2>&1

View 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
View file

7
images/gen.sh Normal file
View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 KiB

BIN
images/lena_waifu2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 KiB

BIN
images/miku_CC_BY-NC.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 722 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 KiB

BIN
images/miku_bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

BIN
images/miku_noisy.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
images/miku_noisy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

BIN
images/miku_small.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
images/miku_small_hq2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

BIN
images/miku_small_noisy.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

BIN
images/miku_small_noisy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

BIN
images/slide.odp Normal file

Binary file not shown.

BIN
images/slide.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 KiB

BIN
images/slide_result.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 KiB

BIN
images/slide_tone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

BIN
images/slide_upscaling.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 KiB

BIN
images/tone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
images/tone_waifu2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB