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

Merge branch 'dev'

This commit is contained in:
nagadomi 2018-11-13 10:43:39 +09:00
commit 996ff1d3dc
25 changed files with 331 additions and 21 deletions

1
.gitignore vendored
View file

@ -19,3 +19,4 @@ models/*/*/*.png
waifu2x.log
waifu2x-*.log
waifu2x_*.log

View file

@ -1,4 +1,4 @@
FROM kaixhin/cuda-torch
FROM kaixhin/cuda-torch:7.5
RUN apt-get update && apt-get install -y --no-install-recommends --force-yes \
libsnappy-dev \

View file

@ -5,6 +5,8 @@ And it supports photo.
The demo application can be found at http://waifu2x.udp.jp/ .
__Note that I only provide this website and this repository. Other software or website claiming "waifu2x" has nothing to do with me.__
## Summary
Click to see the slide show.
@ -82,9 +84,11 @@ sudo apt-get install libsnappy-dev
sudo apt-get install libgraphicsmagick1-dev
```
Note: waifu2x requires little-cms2 linked graphicsmagick. if you use macOS/homebrew, See [#174](https://github.com/nagadomi/waifu2x/issues/174#issuecomment-384466451).
#### Install Torch7
See: [Getting started with Torch](http://torch.ch/docs/getting-started.html)
See: [Getting started with Torch](http://torch.ch/docs/getting-started.html), and [#222](https://github.com/nagadomi/waifu2x/issues/222)
And install luarocks packages.
```

View file

@ -19,6 +19,7 @@ map $http_accept_language $lang {
~ko ko;
~nl nl;
~ca ca;
~ro ro;
~en en;
}

View file

@ -0,0 +1,11 @@
[Unit]
Description = waifu2x API
[Service]
WorkingDirectory=/home/ubuntu/waifu2x
ExecStart = /home/ubuntu/waifu2x/appendix/run-web.sh 1 8811
Restart = always
Type = simple
[Install]
WantedBy = multi-user.target

View file

@ -70,6 +70,10 @@
<a href="index.ca.html">
Català
</a>
/
<a href="index.ro.html">
Limba română
</a>
</div>
<p>Amplia la resolució d'il·lustracions d'estil anime utilitzant xarxes neuronals convolucionals profundes. I suporta fotos.</p>
<p class="margin1 link-box">

View file

@ -70,6 +70,10 @@
<a href="index.ca.html">
Català
</a>
/
<a href="index.ro.html">
Limba română
</a>
</div>
<p>Einzelbild Super-Auflösungs Konvertierung für Bilder im Anime Stil mithilfe eines künstlichen neuronalen Netzwerk. Zusätzlich dazu unterstützt es auch Fotos.</p>
<p class="margin1 link-box">

View file

@ -70,6 +70,10 @@
<a href="index.ca.html">
Català
</a>
/
<a href="index.ro.html">
Limba română
</a>
</div>
<p>Mejora la resolución de ilustraciones de tipo anime utilizando redes neuronales convolucionales. También es compatible con fotografías.</p>
<p class="margin1 link-box">

View file

@ -70,6 +70,10 @@
<a href="index.ca.html">
Català
</a>
/
<a href="index.ro.html">
Limba română
</a>
</div>
<p>Outil permettant la mise à l'échelle de n'importe quelle image de style "anime", par le biais de réseaux de neurones convolutionnels. Fonctionne également sur les photos.</p>
<p class="margin1 link-box">

View file

@ -70,6 +70,10 @@
<a href="index.ca.html">
Català
</a>
/
<a href="index.ro.html">
Limba română
</a>
</div>
<p>Single-Image Super-Resolution for Anime-Style Art using Deep Convolutional Neural Networks. And it supports photo.</p>
<p class="margin1 link-box">

View file

@ -70,6 +70,10 @@
<a href="index.ca.html">
Català
</a>
/
<a href="index.ro.html">
Limba română
</a>
</div>
<p>深層畳み込みニューラルネットワークによる二次元画像のための超解像システム。 写真にも対応。</p>
<p class="margin1 link-box">

View file

@ -70,6 +70,10 @@
<a href="index.ca.html">
Català
</a>
/
<a href="index.ro.html">
Limba română
</a>
</div>
<p>컨볼루션 신경망(CNN) 시스템을 통한 딥 러닝으로 2차원 이미지의 해상도를 개선합니다. 그림뿐만 아니라 사진도 지원합니다.</p>
<p class="margin1 link-box">

View file

@ -70,6 +70,10 @@
<a href="index.ca.html">
Català
</a>
/
<a href="index.ro.html">
Limba română
</a>
</div>
<p>Single-Image Super-Resolutie voor Anime-Style afbeeldingen met behulp van Deep Convolutional Neural Networks. Oh, en het ondersteunt foto's.</p>
<p class="margin1 link-box">

View file

@ -70,6 +70,10 @@
<a href="index.ca.html">
Català
</a>
/
<a href="index.ro.html">
Limba română
</a>
</div>
<p>Single-Image Super-Resolution for Anime-Style Art using Deep Convolutional Neural Networks. And it supports photo.</p>
<p class="margin1 link-box">

199
assets/index.ro.html Normal file
View file

@ -0,0 +1,199 @@
<!DOCTYPE html>
<html lang="ro">
<!-- This file was automatically generated by webgen/gen.rb. Do not make changes to this file manually. -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta charset="utf-8">
<link rel="shortcut icon" href="favicon.ico"/>
<meta name="viewport" content="initial-scale=1.0,width=device-width">
<link href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css" rel="stylesheet" type="text/css">
<link href="style.css" rel="stylesheet" type="text/css">
<link href="mobile.css" rel="stylesheet" type="text/css" media="screen and (max-width: 768px) and (min-width: 0px)">
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/URI.js/1.18.1/URI.min.js"></script>
<script type="text/javascript" src="ui.js"></script>
<title>waifu2x</title>
</head>
<body>
<div class="all-page">
<h1 class="main-title">waifu2x</h1>
<div class="choose-lang">
<a href="index.html">
English
</a>
/
<a href="index.ja.html">
日本語
</a>
/
<a href="index.ru.html">
Русский
</a>
/
<a href="index.pt.html">
Português
</a>
/
<a href="index.es.html">
Español
</a>
/
<a href="index.fr.html">
Français
</a>
/
<a href="index.de.html">
Deutsch
</a>
/
<a href="index.tr.html">
Türkçe
</a>
/
<a href="index.zh-CN.html">
简体中文
</a>
/
<a href="index.zh-TW.html">
繁體中文
</a>
/
<a href="index.ko.html">
한국어
</a>
/
<a href="index.nl.html">
Nederlands
</a>
/
<a href="index.ca.html">
Català
</a>
/
<a href="index.ro.html">
Limba română
</a>
</div>
<p>Schimbă rezoluția fiecărei imagini de tip Anime cu ajutorul rețelelor neuronale convuluționale profunde.</p>
<p class="margin1 link-box">
<a href="https://raw.githubusercontent.com/nagadomi/waifu2x/master/images/slide.png" class="blue-link" target="_blank">
Arată demonstrația
</a>
|
<a href="https://github.com/nagadomi/waifu2x" class="blue-link" target="_blank">
Mergi către GitHub
</a>
</p>
<form action="/api" method="POST" enctype="multipart/form-data" target="_blank">
<div class="option-box first">
<div class="option-left">Alege imaginea:</div>
<div class="option-right">
<input type="text" id="url" name="url" placeholder="Introdu URL-ul Imaginii">
<div class="option-right-small">
Sau alege un fișier:
<input type="file" id="file" name="file"></div>
</div>
<div class="option-hint file_limits">
Limite: Dimensiune: 5MB, Reducere Noise: 3000x3000px, upscale: 1500x1500px
</div>
</div>
<div class="option-box">
<div class="option-left">
Tip:
</div>
<div class="option-right">
<label><input type="radio" name="style" class="radio" value="art" checked>
<span class="r-text">
Artwork
</span>
</label>
<label><input type="radio" name="style" class="radio" value="photo">
<span class="r-text">
Imagine
</span>
</label>
</div>
</div>
<div class="option-box">
<div class="option-left">
Reducere Noise:
<div class="option-left-small">
(Așteaptă artefactele JPEG)
</div>
</div>
<div class="option-right">
<label><input type="radio" name="noise" class="radio" value="-1">
<span class="r-text">
Nu
</span>
</label>
<label><input type="radio" name="noise" class="radio" value="0" checked>
<span class="r-text">
Încet
</span>
</label>
<label><input type="radio" name="noise" class="radio" value="1" checked>
<span class="r-text">
Medium
</span>
</label>
<label>
<input type="radio" name="noise" class="radio" value="2">
<span class="r-text">
Forțat
</span>
</label>
<label>
<input type="radio" name="noise" class="radio" value="3">
<span class="r-text">
Super Forțat
</span>
</label>
</div>
<div class="option-hint">
Aveți nevoie de reducere de Noise dacă imaginea are Noise efectiv sau poate produce efect opus.
</div>
</div>
<div class="option-box">
<div class="option-left">
Upscale:
<div class="option-left-small"></div>
</div>
<div class="option-right">
<label><input type="radio" name="scale" class="radio" value="-1" checked>
<span class="r-text">
Nu
</span>
</label>
<label><input type="radio" name="scale" class="radio" value="1">
<span class="r-text">
1.6x
</span>
</label>
<label><input type="radio" name="scale" class="radio" value="2">
<span class="r-text">
2x
</span>
</label>
</div>
</div>
<input type="submit" class="button" value="Convert">
<input type="submit" name="download" value="Descărcare" class="button">
<div class="bottom-hint">
<ul>
<li>Dacă folosești Firefox, te rog folosește CTRL+S pentru salvarea imaginii. Opțiunea "Save Image" nu funcționează.</li>
</ul>
</div>
</form>
</div>
<div class="bottom-info address">
<a href="https://github.com/nagadomi/waifu2x" class="gray-link" target="_blank">waifu2x</a>
</div>
</body>
</html>

View file

@ -70,11 +70,15 @@
<a href="index.ca.html">
Català
</a>
/
<a href="index.ro.html">
Limba română
</a>
</div>
<p>Waifu2x позволяет увеличивать в 2 раза рисованные изображения, например аниме или арт, а также устранять шум на изображении (преимущественно артефакты сжатия JPEG). Теперь также поддерживаются фотографии.</p>
<p>Waifu2x позволяет увеличивать рисованные изображения, например аниме или арт, а также устранять шум на изображении (преимущественно артефакты сжатия JPEG). Также поддерживаются фотографии.</p>
<p class="margin1 link-box">
<a href="https://raw.githubusercontent.com/nagadomi/waifu2x/master/images/slide.png" class="blue-link" target="_blank">
Посмотреть полную демонстрацию
Показать пример
</a>
|
<a href="https://github.com/nagadomi/waifu2x" class="blue-link" target="_blank">
@ -91,7 +95,7 @@
<input type="file" id="file" name="file"></div>
</div>
<div class="option-hint file_limits">
Макс. размер файла — 5MB, устранение шума — макс. 3000x3000px, увеличение — 1500x1500px.
Ограничения: Размер файла — 5MB, Устранение шума — 3000x3000px, Увеличение — 1500x1500px.
</div>
</div>
<div class="option-box">
@ -126,29 +130,29 @@
</label>
<label><input type="radio" name="noise" class="radio" value="0" checked>
<span class="r-text">
Low
Слабое
</span>
</label>
<label><input type="radio" name="noise" class="radio" value="1" checked>
<span class="r-text">
Средне
Среднее
</span>
</label>
<label>
<input type="radio" name="noise" class="radio" value="2">
<span class="r-text">
Сильно
Сильное
</span>
</label>
<label>
<input type="radio" name="noise" class="radio" value="3">
<span class="r-text">
Очень сильно
Очень сильное
</span>
</label>
</div>
<div class="option-hint">
Устранение шума нужно использовать, если на картинке действительно есть шум, иначе это даст противоположный эффект.
Устранение шума нужно использовать, если на изображении действительно есть шум, иначе может получиться обратный эффект.
</div>
</div>
<div class="option-box">
@ -182,7 +186,7 @@
<div class="bottom-hint">
<ul>
<li>Если Вы используете Firefox, для сохранения изображения нажмите Ctrl+S (перетаскивание изображения и опция "Сохранить изображение" работать не будут).</li>
<li>Если Вы используете Firefox, для сохранения изображения нажмите Ctrl+S (опция "Сохранить изображение" не работает).</li>
</ul>
</div>

View file

@ -70,6 +70,10 @@
<a href="index.ca.html">
Català
</a>
/
<a href="index.ro.html">
Limba română
</a>
</div>
<p>Derin Sarmalı Sinirsel Ağ ile çalışan anime stili çalışmalar için süper çözünürlük yükselticidir. Normal fotoğrafları da destekler.</p>
<p class="margin1 link-box">

View file

@ -70,6 +70,10 @@
<a href="index.ca.html">
Català
</a>
/
<a href="index.ro.html">
Limba română
</a>
</div>
<p>本程序使用卷积神经网络对动漫风格的图片进行放大操作(支持照片)。</p>
<p class="margin1 link-box">
@ -126,7 +130,7 @@
</label>
<label><input type="radio" name="noise" class="radio" value="0" checked>
<span class="r-text">
Low
</span>
</label>
<label><input type="radio" name="noise" class="radio" value="1" checked>

View file

@ -70,6 +70,10 @@
<a href="index.ca.html">
Català
</a>
/
<a href="index.ro.html">
Limba română
</a>
</div>
<p>使用深度卷積神經網路的二次元圖片超解析系統。同時支援照片處理。</p>
<p class="margin1 link-box">

View file

@ -16,6 +16,7 @@ install_cudnn()
luarocks install graphicsmagick
luarocks install lua-csnappy
luarocks install md5
luarocks install uuid
luarocks install csvigo
install_cudnn
PREFIX=$HOME/torch/install luarocks install turbo

View file

@ -50,7 +50,8 @@ if cudnn then
end
opt.force_cudnn = opt.force_cudnn == 1
opt.enable_tta = opt.enable_tta == 1
local ART_MODEL_DIR = path.join(ROOT, "models", "upconv_7", "art")
--local ART_MODEL_DIR = path.join(ROOT, "models", "upconv_7", "art")
local ART_MODEL_DIR = path.join(ROOT, "models", "cunet", "art")
local PHOTO_MODEL_DIR = path.join(ROOT, "models", "upconv_7", "photo")
local art_model = {
scale = w2nn.load_model(path.join(ART_MODEL_DIR, "scale2.0x_model.t7"), opt.force_cudnn),

30
webgen/locales/ro.yml Executable file
View file

@ -0,0 +1,30 @@
---
description: Schimbă rezoluția fiecărei imagini de tip Anime cu ajutorul rețelelor neuronale convuluționale profunde.
show_demonstration: Arată demonstrația
go_to_github: Mergi către GitHub
image_choosing: Alege imaginea
type_url: Introdu URL-ul Imaginii
choose_file: Sau alege un fișier
file_limits: "Limite: Dimensiune: 5MB, Reducere Noise: 3000x3000px, upscale: 1500x1500px"
style: Tip
artwork: Artwork
photo: Imagine
noise_reduction: Reducere Noise
expect_jpeg: Așteaptă artefactele JPEG
nr_none: Nu
nr_low: Încet
nr_medium: Medium
nr_high: Forțat
nr_highest: Super Forțat
nr_hint: "Aveți nevoie de reducere de Noise dacă imaginea are Noise efectiv sau poate produce efect opus."
upscaling: Upscale
up_none: Nu
tta: TTA
tta_best_effort: "n-pass auto"
tta_rule: Regulile pentru `n-pass auto`."
tta_hint: "TTA asigură o calitate stabilă dar limitează dimensiunea imaginii sursă."
button_convert: Convert
button_download: Descărcare
hints:
- "Dacă folosești Firefox, te rog folosește CTRL+S pentru salvarea imaginii. Opțiunea \"Save Image\" nu funcționează."

View file

@ -1,24 +1,29 @@
---
description: "Waifu2x позволяет увеличивать в 2 раза рисованные изображения, например аниме или арт, а также устранять шум на изображении (преимущественно артефакты сжатия JPEG). Теперь также поддерживаются фотографии."
show_demonstration: Посмотреть полную демонстрацию
description: "Waifu2x позволяет увеличивать рисованные изображения, например аниме или арт, а также устранять шум на изображении (преимущественно артефакты сжатия JPEG). Также поддерживаются фотографии."
show_demonstration: Показать пример
go_to_github: Перейти на GitHub
image_choosing: Выбор изображения
type_url: Укажите URL
choose_file: Либо выберите файл
file_limits: "Макс. размер файла — 5MB, устранение шума — макс. 3000x3000px, увеличение — 1500x1500px."
file_limits: "Ограничения: Размер файла — 5MB, Устранение шума — 3000x3000px, Увеличение — 1500x1500px."
style: Тип изображения
artwork: Арт
photo: Фотография
noise_reduction: Устранение шума
expect_jpeg: артефактов JPEG
nr_none: Нет
nr_medium: Средне
nr_high: Сильно
nr_highest: Очень сильно
nr_hint: "Устранение шума нужно использовать, если на картинке действительно есть шум, иначе это даст противоположный эффект."
nr_low: Слабое
nr_medium: Среднее
nr_high: Сильное
nr_highest: Очень сильное
nr_hint: "Устранение шума нужно использовать, если на изображении действительно есть шум, иначе может получиться обратный эффект."
upscaling: Увеличение
up_none: Нет
tta: Предсказание на аугментированных данных (TTA)
tta_best_effort: "n-pass auto"
tta_rule: "Показать правило `n-pass auto`."
tta_hint: "TTA даёт стабильно высокое качество, но ограничивает размер исходного изображения."
button_convert: Преобразовать
button_download: Скачать
hints:
- "Если Вы используете Firefox, для сохранения изображения нажмите Ctrl+S (перетаскивание изображения и опция \"Сохранить изображение\" работать не будут)."
- "Если Вы используете Firefox, для сохранения изображения нажмите Ctrl+S (опция \"Сохранить изображение\" не работает)."

View file

@ -12,6 +12,7 @@ photo: 照片
noise_reduction: 降噪程度
expect_jpeg: 可能会产生JPEG噪点
nr_none: 不降噪
nr_low:
nr_medium:
nr_high:
nr_highest: 最高

View file

@ -70,6 +70,10 @@
<a href="index.ca.html">
Català
</a>
/
<a href="index.ro.html">
Limba română
</a>
</div>
<p><%= t[:description] %></p>
<p class="margin1 link-box">