index.zh-CN.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <!-- This file was automatically generated by webgen/gen.rb. Do not make changes to this file manually. -->
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="utf-8">
  7. <link rel="shortcut icon" href="favicon.ico"/>
  8. <meta name="viewport" content="initial-scale=1.0,width=device-width">
  9. <link href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css" rel="stylesheet" type="text/css">
  10. <link href="style.css" rel="stylesheet" type="text/css">
  11. <link href="mobile.css" rel="stylesheet" type="text/css" media="screen and (max-width: 768px) and (min-width: 0px)">
  12. <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
  13. <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.js"></script>
  14. <script type="text/javascript" src="ui.js"></script>
  15. <title>waifu2x</title>
  16. </head>
  17. <body>
  18. <div class="all-page">
  19. <h1 class="main-title">waifu2x</h1>
  20. <div class="choose-lang">
  21. <a href="index.html">
  22. English
  23. </a>
  24. /
  25. <a href="index.ja.html">
  26. 日本語
  27. </a>
  28. /
  29. <a href="index.ru.html">
  30. Русский
  31. </a>
  32. /
  33. <a href="index.pt.html">
  34. Português
  35. </a>
  36. /
  37. <a href="index.es.html">
  38. Español
  39. </a>
  40. /
  41. <a href="index.fr.html">
  42. Français
  43. </a>
  44. /
  45. <a href="index.de.html">
  46. Deutsch
  47. </a>
  48. /
  49. <a href="index.tr.html">
  50. Türkçe
  51. </a>
  52. /
  53. <a href="index.zh-CN.html">
  54. 简体中文
  55. </a>
  56. </div>
  57. <p>本程序使用卷积神经网络对动漫风格的图片进行放大操作(支持照片)。</p>
  58. <p class="margin1 link-box">
  59. <a href="https://raw.githubusercontent.com/nagadomi/waifu2x/master/images/slide.png" class="blue-link" target="_blank">
  60. 完整演示
  61. </a>
  62. |
  63. <a href="https://github.com/nagadomi/waifu2x" class="blue-link" target="_blank">
  64. 转至GitHub
  65. </a>
  66. </p>
  67. <form action="/api" method="POST" enctype="multipart/form-data" target="_blank">
  68. <div class="option-box first">
  69. <div class="option-left">选择图像:</div>
  70. <div class="option-right">
  71. <input type="text" id="url" name="url" placeholder="输入图像链接">
  72. <div class="option-right-small">
  73. 或者从本地上传:
  74. <input type="file" id="file" name="file"></div>
  75. </div>
  76. <div class="option-hint file_limits">
  77. 文件大小不得超过3MB;可降噪图像的最大尺寸:2560x2560px;可放大图像的最大尺寸:1280x1280px。
  78. </div>
  79. </div>
  80. <div class="option-box">
  81. <div class="option-left">
  82. 风格:
  83. </div>
  84. <div class="option-right">
  85. <label><input type="radio" name="style" class="radio" value="art" checked>
  86. <span class="r-text">
  87. 插图
  88. </span>
  89. </label>
  90. <label><input type="radio" name="style" class="radio" value="photo">
  91. <span class="r-text">
  92. 照片
  93. </span>
  94. </label>
  95. </div>
  96. </div>
  97. <div class="option-box">
  98. <div class="option-left">
  99. 降噪程度:
  100. <div class="option-left-small">
  101. (可能会产生JPEG噪点)
  102. </div>
  103. </div>
  104. <div class="option-right">
  105. <label><input type="radio" name="noise" class="radio" value="-1">
  106. <span class="r-text">
  107. 不降噪
  108. </span>
  109. </label>
  110. <label><input type="radio" name="noise" class="radio" value="0" checked>
  111. <span class="r-text">
  112. Low
  113. </span>
  114. </label>
  115. <label><input type="radio" name="noise" class="radio" value="1" checked>
  116. <span class="r-text">
  117. </span>
  118. </label>
  119. <label>
  120. <input type="radio" name="noise" class="radio" value="2">
  121. <span class="r-text">
  122. </span>
  123. </label>
  124. <label>
  125. <input type="radio" name="noise" class="radio" value="3">
  126. <span class="r-text">
  127. 最高
  128. </span>
  129. </label>
  130. </div>
  131. <div class="option-hint">
  132. 请仅在图像本身含有噪点的情况下使用降噪,否则可能产生反效果。
  133. </div>
  134. </div>
  135. <div class="option-box">
  136. <div class="option-left">
  137. 放大倍数:
  138. <div class="option-left-small"></div>
  139. </div>
  140. <div class="option-right">
  141. <label><input type="radio" name="scale" class="radio" value="0" checked>
  142. <span class="r-text">
  143. 不放大
  144. </span>
  145. </label>
  146. <label><input type="radio" name="scale" class="radio" value="1">
  147. <span class="r-text">
  148. 1.6x
  149. </span>
  150. </label>
  151. <label><input type="radio" name="scale" class="radio" value="2">
  152. <span class="r-text">
  153. 2x
  154. </span>
  155. </label>
  156. </div>
  157. </div>
  158. <div class="option-box">
  159. <div class="option-left">
  160. TTA:
  161. <div class="option-left-small"></div>
  162. </div>
  163. <div class="option-right">
  164. <label><input type="radio" name="tta_level" class="radio" value="1" checked>
  165. <span class="r-text">
  166. 1 pass
  167. </span>
  168. </label>
  169. <!--
  170. <label><input type="radio" name="tta_level" class="radio" value="2" checked>
  171. <span class="r-text">
  172. 2 pass
  173. </span>
  174. </label>
  175. <label><input type="radio" name="tta_level" class="radio" value="4">
  176. <span class="r-text">
  177. 4 pass
  178. </span>
  179. </label>
  180. <label><input type="radio" name="tta_level" class="radio" value="8">
  181. <span class="r-text">
  182. 8 pass
  183. </span>
  184. </label>
  185. -->
  186. <label><input type="radio" name="tta_level" class="radio" value="0" checked>
  187. <span class="r-text">
  188. n-pass auto
  189. </span>
  190. </label>
  191. </div>
  192. <div class="option-hint">
  193. TTA makes stable quality but it limits the source image size.
  194. <a href="#" class="tta_rule">
  195. Show the rule of `n-pass auto`.
  196. </a>
  197. <div style="display:none" class="tta_rule_text">
  198. <table>
  199. <tr>
  200. <td>
  201. &lt;= 452x452
  202. </td>
  203. <td>
  204. 8 pass
  205. </td>
  206. </tr>
  207. <tr>
  208. <td>
  209. &lt;= 640x640
  210. </td>
  211. <td>
  212. 4 pass
  213. </td>
  214. </tr>
  215. <tr>
  216. <td>
  217. &lt;= 905x905
  218. </td>
  219. <td>
  220. 2 pass
  221. </td>
  222. </tr>
  223. <tr>
  224. <td>
  225. else
  226. </td>
  227. <td>
  228. 1 pass
  229. </td>
  230. </tr>
  231. </table>
  232. </div>
  233. </div>
  234. </div>
  235. <input type="submit" class="button" value="转换">
  236. <input type="submit" name="download" value="下载" class="button">
  237. <div class="bottom-hint">
  238. <ul>
  239. <li>Firefox无法用右键菜单中的“保存图像”,请按Ctrl+S保存。</li>
  240. </ul>
  241. </div>
  242. </form>
  243. </div>
  244. <div class="bottom-info address">
  245. <a href="https://github.com/nagadomi/waifu2x" class="gray-link" target="_blank">waifu2x</a>
  246. </div>
  247. </body>
  248. </html>