Browse Source

Merge branch 'master' of github.com:nagadomi/waifu2x

nagadomi 5 years ago
parent
commit
950108d561

+ 3 - 0
.github/FUNDING.yml

@@ -0,0 +1,3 @@
+# These are supported funding model platforms
+
+patreon: nagadomi

+ 2 - 2
Dockerfile

@@ -1,10 +1,10 @@
-FROM kaixhin/cuda-torch:7.5
+FROM nagadomi/torch7:cuda10.1-cudnn7-devel-ubuntu18.04
 
 RUN apt-get update && apt-get install -y --no-install-recommends --force-yes \
   libsnappy-dev \
   graphicsmagick \
   libgraphicsmagick1-dev \
-  libssl-dev \
+  libssl1.0-dev \
   ca-certificates \
   git && \
   rm -rf /var/lib/apt/lists/*

+ 7 - 4
README.md

@@ -28,7 +28,7 @@ TODO
 
 [Third-Party](https://github.com/nagadomi/waifu2x/wiki/Third-Party)
 
-If you are a windows user, I recommend you to use [waifu2x-caffe](https://github.com/lltcggie/waifu2x-caffe)(Just download from `releases` tab) or [waifu2x-conver-cpp](https://github.com/DeadSix27/waifu2x-converter-cpp).
+If you are a windows user, I recommend you to use [waifu2x-caffe](https://github.com/lltcggie/waifu2x-caffe)(Just download from `releases` tab), [waifu2x-ncnn-vulkan](https://github.com/nihui/waifu2x-ncnn-vulkan) or [waifu2x-conver-cpp](https://github.com/DeadSix27/waifu2x-converter-cpp).
 
 ## Dependencies
 
@@ -58,8 +58,6 @@ See: [NVIDIA CUDA Getting Started Guide for Linux](http://docs.nvidia.com/cuda/c
 
 Download [CUDA](http://developer.nvidia.com/cuda-downloads)
 
-Note: Torch does not supported CUDA10. CUDA9.2 is recommended.
-
 ```
 sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb
 sudo apt-get update
@@ -78,7 +76,10 @@ Note: waifu2x requires little-cms2 linked graphicsmagick. if you use macOS/homeb
 
 #### Install Torch7
 
-See: [Getting started with Torch](http://torch.ch/docs/getting-started.html). For CUDA9.x/CUDA8.x, see [#222](https://github.com/nagadomi/waifu2x/issues/222), For CUDA10, see [#253](https://github.com/nagadomi/waifu2x/issues/253#issuecomment-445448928).
+See: [Getting started with Torch](http://torch.ch/docs/getting-started.html).
+
+- For CUDA9.x/CUDA8.x, see [#222](https://github.com/nagadomi/waifu2x/issues/222)
+- For CUDA10.x, see [#253](https://github.com/nagadomi/waifu2x/issues/253#issuecomment-445448928)
 
 #### Getting waifu2x
 
@@ -240,6 +241,8 @@ You can check the performance of model with `models/my_model/noise1_scale2.0x_be
 
 ## Docker
 
+( Docker image is available at https://hub.docker.com/r/nagadomi/waifu2x )
+
 Requires `nvidia-docker`.
 
 ```

+ 1 - 1
assets/index.ca.html

@@ -72,7 +72,7 @@
 	</a>
 	/
 	<a href="index.ro.html">
-	  Limba română
+	  Română
 	</a>
       </div>
       <p>Amplia la resolució d'il·lustracions d'estil anime utilitzant xarxes neuronals convolucionals profundes. I suporta fotos.</p>

+ 1 - 1
assets/index.de.html

@@ -72,7 +72,7 @@
 	</a>
 	/
 	<a href="index.ro.html">
-	  Limba română
+	  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>

+ 1 - 1
assets/index.es.html

@@ -72,7 +72,7 @@
 	</a>
 	/
 	<a href="index.ro.html">
-	  Limba română
+	  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>

+ 1 - 1
assets/index.fr.html

@@ -72,7 +72,7 @@
 	</a>
 	/
 	<a href="index.ro.html">
-	  Limba română
+	  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>

+ 1 - 1
assets/index.html

@@ -72,7 +72,7 @@
 	</a>
 	/
 	<a href="index.ro.html">
-	  Limba română
+	  Română
 	</a>
       </div>
       <p>Single-Image Super-Resolution for Anime-Style Art using Deep Convolutional Neural Networks. And it supports photo.</p>

+ 1 - 1
assets/index.ja.html

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

+ 1 - 1
assets/index.ko.html

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

+ 1 - 1
assets/index.nl.html

@@ -72,7 +72,7 @@
 	</a>
 	/
 	<a href="index.ro.html">
-	  Limba română
+	  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>

+ 13 - 13
assets/index.pt.html

@@ -72,30 +72,30 @@
 	</a>
 	/
 	<a href="index.ro.html">
-	  Limba română
+	  Română
 	</a>
       </div>
-      <p>Single-Image Super-Resolution for Anime-Style Art using Deep Convolutional Neural Networks. And it supports photo.</p>
+      <p>Super resolução de imagem única para arte estilo anime usando redes neurais convolucionais. Com suporte para fotos.</p>
       <p class="margin1 link-box">
 	<a href="https://raw.githubusercontent.com/nagadomi/waifu2x/master/images/slide.png" class="blue-link" target="_blank">
-	  Sobre
+	  Mostrar demonstração
 	</a>
 	| 
 	<a href="https://github.com/nagadomi/waifu2x" class="blue-link" target="_blank">
-	  Ir para Github
+	  Ir para o Github
 	</a>
       </p>
       <form action="/api" method="POST" enctype="multipart/form-data" target="_blank">
 	<div class="option-box first">
 	  <div class="option-left">Imagem:</div>
 	  <div class="option-right">
-	    <input type="text" id="url" name="url" placeholder="URL">
+	    <input type="text" id="url" name="url" placeholder="Digite uma URL">
 	    <div class="option-right-small">
-	      ARQUIVO: 
+	      Ou escolha um arquivo: 
 	      <input type="file" id="file" name="file"></div>
 	  </div>
 	  <div class="option-hint file_limits">
-	    Limites: Tamanho: 5MB, Redução de ruído: 3000x3000px, Aumento de escala: 1500x1500px.
+	    Limites: Tamanho: 5MB; Redução de ruído: 3000x3000px; Aumento de escala: 1500x1500px.
 	  </div>
 	</div>
 	<div class="option-box">
@@ -105,7 +105,7 @@
 	  <div class="option-right">
 	    <label><input type="radio" name="style" class="radio" value="art" checked>
 	      <span class="r-text">
-		Arte
+		Desenho
 	      </span>
 	    </label>
 	    <label><input type="radio" name="style" class="radio" value="photo">
@@ -119,7 +119,7 @@
 	  <div class="option-left">
 	    Redução de ruído:
 	    <div class="option-left-small">
-	      (Exceto artefato JPEG)
+	      (exceto artefato JPEG)
 	    </div>
 	  </div>
 	  <div class="option-right">
@@ -130,7 +130,7 @@
 	    </label>
 	    <label><input type="radio" name="noise" class="radio" value="0" checked>
 	      <span class="r-text">
-		Low
+		Baixa
 	      </span>
 	    </label>
 	    <label><input type="radio" name="noise" class="radio" value="1" checked>
@@ -147,12 +147,12 @@
 	    <label>
 	      <input type="radio" name="noise" class="radio" value="3">
 	      <span class="r-text">
-		Highest
+		Mais alta
 	      </span>
 	    </label>
 	  </div>
 	  <div class="option-hint">
-	    Quando usando a escala 2x, Nós nunca recomendamos usar um nível alto de redução de ruído, quase sempre deixa a imagem pior, faz sentido apenas para casos raros quando a imagem tinha uma qualidade muito má desde o começo.
+	    Use redução de ruído apenas se a imagem realmente apresentar ruído; do contrário, isso poderá piorar a qualidade da imagem.
 	  </div>
 	</div>
 	<div class="option-box">
@@ -186,7 +186,7 @@
 	<div class="bottom-hint">
 	  <ul>
 	    
-	      <li>Se Você estiver usando o Firefox, por favor, aperte CTRL+S para salvar a imagem. A opção "Salvar Imagem" não funciona</li>
+	      <li>Se você estiver usando o Firefox, por favor, aperte CTRL+S para salvar a imagem. A opção "Salvar Imagem" não funciona.</li>
 	    
 	  </ul>
 	</div>

+ 21 - 21
assets/index.ro.html

@@ -72,22 +72,22 @@
 	</a>
 	/
 	<a href="index.ro.html">
-	  Limba română
+	  Română
 	</a>
       </div>
-      <p>Schimbă rezoluția fiecărei imagini de tip Anime cu ajutorul rețelelor neuronale convuluționale profunde.</p>
+      <p>O Super-Sistemă de Schimbare Singulară al Rezoluției pentru Desene de Tip Anime ce Utilizează Rețele Neurale Profunde Convoluționale. De-asemenea suportă fotografii.</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
+	  Arată demonstrația deplină
 	</a>
 	| 
 	<a href="https://github.com/nagadomi/waifu2x" class="blue-link" target="_blank">
-	  Mergi către GitHub
+	  Mergi la 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-left">Alegerea imaginii:</div>
 	  <div class="option-right">
 	    <input type="text" id="url" name="url" placeholder="Introdu URL-ul Imaginii">
 	    <div class="option-right-small">
@@ -95,7 +95,7 @@
 	      <input type="file" id="file" name="file"></div>
 	  </div>
 	  <div class="option-hint file_limits">
-	    Limite: Dimensiune: 5MB, Reducere Noise: 3000x3000px, upscale: 1500x1500px
+	    Limite: Mărime: 5MB, Reducere Zgomot: 3000x3000px, Lărgire: 1500x1500px
 	  </div>
 	</div>
 	<div class="option-box">
@@ -105,65 +105,65 @@
 	  <div class="option-right">
 	    <label><input type="radio" name="style" class="radio" value="art" checked>
 	      <span class="r-text">
-		Artwork
+		Desen
 	      </span>
 	    </label>
 	    <label><input type="radio" name="style" class="radio" value="photo">
 	      <span class="r-text">
-		Imagine
+		Fotografie
 	      </span>
 	    </label>
 	  </div>
 	</div>
 	<div class="option-box">
 	  <div class="option-left">
-	    Reducere Noise:
+	    Reducere Zgomot:
 	    <div class="option-left-small">
-	      (Așteaptă artefactele JPEG)
+	      (Va crea artefacte de tip JPEG)
 	    </div>
 	  </div>
 	  <div class="option-right">
 	    <label><input type="radio" name="noise" class="radio" value="-1">
 	      <span class="r-text">
-		Nu
+		Fără
 	      </span>
 	    </label>
 	    <label><input type="radio" name="noise" class="radio" value="0" checked>
 	      <span class="r-text">
-		Încet
+		Slab
 	      </span>
 	    </label>
 	    <label><input type="radio" name="noise" class="radio" value="1" checked>
 	      <span class="r-text">
-		Medium
+		Mediu
 	      </span>
 	    </label>
 	    <label>
 	      <input type="radio" name="noise" class="radio" value="2">
 	      <span class="r-text">
-		Forțat
+		Puternic
 	      </span>
 	    </label>
 	    <label>
 	      <input type="radio" name="noise" class="radio" value="3">
 	      <span class="r-text">
-		Super Forțat
+		Cel Mai Puternic
 	      </span>
 	    </label>
 	  </div>
 	  <div class="option-hint">
-	    Aveți nevoie de reducere de Noise dacă imaginea are Noise efectiv sau poate produce efect opus.
+	    Veți avea nevoie de Reducere Zgomot dacă imaginea are zgomot sau va crea efecte adverse.
 	  </div>
 	</div>
 	<div class="option-box">
 	  <div class="option-left">
-	    Upscale:
+	    Lărgire:
 	    <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
+		Fără
 	      </span>
 	    </label>
 	    <label><input type="radio" name="scale" class="radio" value="1">
@@ -180,13 +180,13 @@
 	</div>
 	
 	
-	  <input type="submit" class="button" value="Convert">
+	  <input type="submit" class="button" value="Convertește">
 	
-	<input type="submit" name="download" value="Descărcare" class="button">
+	<input type="submit" name="download" value="Descărcă" 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>
+	      <li>Dacă utilizezi Firefox, te rog să folosește CTRL+S pentru salvarea imaginii.  Opțiunea "Save Image" nu funcționează.</li>
 	    
 	  </ul>
 	</div>

+ 1 - 1
assets/index.ru.html

@@ -72,7 +72,7 @@
 	</a>
 	/
 	<a href="index.ro.html">
-	  Limba română
+	  Română
 	</a>
       </div>
       <p>Waifu2x позволяет увеличивать рисованные изображения, например аниме или арт, а также устранять шум на изображении (преимущественно артефакты сжатия JPEG). Также поддерживаются фотографии.</p>

+ 1 - 1
assets/index.tr.html

@@ -72,7 +72,7 @@
 	</a>
 	/
 	<a href="index.ro.html">
-	  Limba română
+	  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>

+ 1 - 1
assets/index.zh-CN.html

@@ -72,7 +72,7 @@
 	</a>
 	/
 	<a href="index.ro.html">
-	  Limba română
+	  Română
 	</a>
       </div>
       <p>本程序使用卷积神经网络对动漫风格的图片进行放大操作(支持照片)。</p>

+ 1 - 1
assets/index.zh-TW.html

@@ -72,7 +72,7 @@
 	</a>
 	/
 	<a href="index.ro.html">
-	  Limba română
+	  Română
 	</a>
       </div>
       <p>使用深度卷積神經網路的二次元圖片超解析系統。同時支援照片處理。</p>

+ 12 - 10
webgen/locales/pt.yml

@@ -1,23 +1,25 @@
 ---
-description: Single-Image Super-Resolution for Anime-Style Art using Deep Convolutional Neural Networks. And it supports photo.
-show_demonstration: Sobre
-go_to_github: Ir para Github
+description: Super resolução de imagem única para arte estilo anime usando redes neurais convolucionais. Com suporte para fotos.
+show_demonstration: Mostrar demonstração
+go_to_github: Ir para o Github
 image_choosing: Imagem
-type_url: URL
-choose_file: ARQUIVO
-file_limits: "Limites: Tamanho: 5MB, Redução de ruído: 3000x3000px, Aumento de escala: 1500x1500px."
+type_url: Digite uma URL
+choose_file: Ou escolha um arquivo
+file_limits: "Limites: Tamanho: 5MB; Redução de ruído: 3000x3000px; Aumento de escala: 1500x1500px."
 style: Estilo
-artwork: Arte
+artwork: Desenho
 photo: Foto
 noise_reduction: Redução de ruído
-expect_jpeg: Exceto artefato JPEG
+expect_jpeg: exceto artefato JPEG
 nr_none: Nenhuma
+nr_low: Baixa
 nr_medium: Média
 nr_high: Alta
-nr_hint: "Quando usando a escala 2x, Nós nunca recomendamos usar um nível alto de redução de ruído, quase sempre deixa a imagem pior, faz sentido apenas para casos raros quando a imagem tinha uma qualidade muito má desde o começo."
+nr_highest: Mais alta
+nr_hint: "Use redução de ruído apenas se a imagem realmente apresentar ruído; do contrário, isso poderá piorar a qualidade da imagem."
 upscaling: Aumento de escala
 up_none: Nenhum
 button_convert: Converter
 button_download: Baixar
 hints:
-  - "Se Você estiver usando o Firefox, por favor, aperte CTRL+S para salvar a imagem. A opção \"Salvar Imagem\" não funciona"
+  - "Se você estiver usando o Firefox, por favor, aperte CTRL+S para salvar a imagem. A opção \"Salvar Imagem\" não funciona."

+ 23 - 23
webgen/locales/ro.yml

@@ -1,30 +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
+description: O Super-Sistemă de Schimbare Singulară al Rezoluției pentru Desene de Tip Anime ce Utilizează Rețele Neurale Profunde Convoluționale. De-asemenea suportă fotografii.
+show_demonstration: Arată demonstrația deplină
+go_to_github: Mergi la GitHub
+image_choosing: Alegerea imaginii
 type_url: Introdu URL-ul Imaginii
 choose_file: Sau alege un fișier
-file_limits: "Limite: Dimensiune: 5MB, Reducere Noise: 3000x3000px, upscale: 1500x1500px"
+file_limits: "Limite: Mărime: 5MB, Reducere Zgomot: 3000x3000px, Lărgire: 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
+artwork: Desen
+photo: Fotografie
+noise_reduction: Reducere Zgomot
+expect_jpeg: Va crea artefacte de tip JPEG
+nr_none: Fără
+nr_low: Slab
+nr_medium: Mediu
+nr_high: Puternic
+nr_highest: Cel Mai Puternic
+nr_hint: "Veți avea nevoie de Reducere Zgomot dacă imaginea are zgomot sau va crea efecte adverse."
+upscaling: Lărgire
+up_none: Fără
+tta: Augmentare prin Predicție (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
+tta_rule: Arată regulile `n-pass auto`."
+tta_hint: "TTA asigură calitate dar limitează dimensiunele imaginii."
+button_convert: Convertește
+button_download: Descărcă
 hints:
-  - "Dacă folosești Firefox, te rog folosește CTRL+S pentru salvarea imaginii.  Opțiunea \"Save Image\" nu funcționează."
+  - "Dacă utilizezi Firefox, te rog să folosește CTRL+S pentru salvarea imaginii.  Opțiunea \"Save Image\" nu funcționează."
 

+ 1 - 1
webgen/templates/index.html.erb

@@ -72,7 +72,7 @@
 	</a>
 	/
 	<a href="index.ro.html">
-	  Limba română
+	  Română
 	</a>
       </div>
       <p><%= t[:description] %></p>