index.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <html>
  2. <head>
  3. <link rel="canonical" href="http://waifu2x.udp.jp/"/>
  4. <title>waifu2x</title>
  5. <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
  6. <style type="text/css" rel="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css"></style>
  7. <style type="text/css">
  8. body {
  9. margin: 1em 2em 1em 2em;
  10. background: LightGray;
  11. width: 640px;
  12. }
  13. fieldset {
  14. margin-top: 1em;
  15. margin-bottom: 1em;
  16. }
  17. .about {
  18. font-size: 0.8em;
  19. margin: 1em 0 1em 0;
  20. }
  21. .help {
  22. font-size: 0.8em;
  23. margin: 1em 0 1em 0;
  24. }
  25. </style>
  26. <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
  27. <script type="text/javascript">
  28. function clear_file() {
  29. var new_file = $("#file").clone();
  30. new_file.change(clear_url);
  31. $("#file").replaceWith(new_file);
  32. }
  33. function clear_url() {
  34. $("#url").val("")
  35. }
  36. $(function (){
  37. $("#url").change(clear_file);
  38. $("#file").change(clear_url);
  39. })
  40. </script>
  41. </head>
  42. <body>
  43. <h1>waifu2x</h1>
  44. <div class="header">
  45. <a href="https://github.com/nagadomi/waifu2x">
  46. <img style="position: absolute; top: 0; left: 540; border: 0;" src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png">
  47. </a>
  48. <a href="index.ja.html">ja</a>/<a href="index.html">en</a>
  49. </div>
  50. <div class="about">
  51. Single-Image Super-Resolution for anime/fan-arts using Deep Convolutional Neural Networks.
  52. </div>
  53. <form action="/api" method="POST" enctype="multipart/form-data" target="_blank">
  54. <fieldset>
  55. <legend>Image</legend>
  56. <div>
  57. URL: <input id="url" type="text" name="url" size="64"/> or
  58. </div>
  59. <div>
  60. FILE: <input id="file" type="file" name="file"/>
  61. </div>
  62. <div class="help">
  63. Limits: FileSize: 2MB, Noise Reduction: 2560x2560px, Upscaling: 1280x1280px
  64. </div>
  65. </fieldset>
  66. <fieldset>
  67. <legend>Noise Reduction (expect JPEG Artifact)</legend>
  68. <label><input type="radio" name="noise" value="0"> None</label>
  69. <label><input type="radio" name="noise" value="1" checked="checked"> Low</label>
  70. <label><input type="radio" name="noise" value="2"> High</label>
  71. </fieldset>
  72. <fieldset>
  73. <legend>Upscaling</legend>
  74. <label><input type="radio" name="scale" value="0" checked="checked"> None</label>
  75. <label><input type="radio" name="scale" value="1"> 1.6x</label>
  76. <label><input type="radio" name="scale" value="2"> 2x</label>
  77. </fieldset>
  78. <input type="submit"/>
  79. </form>
  80. <!-- buttons -->
  81. <div>
  82. <div style="float:left">
  83. <g:plusone size="small"></g:plusone>
  84. </div>
  85. <div style="float:left">
  86. <div id="fb-root"></div>
  87. <script src="http://connect.facebook.net/en_US/all.js#xfbml=1">
  88. </script>
  89. <fb:like href="http://waifu2x.udp.jp/" send="true" layout="button_count" width="450" show_faces="true" font=""></fb:like>
  90. </div>
  91. <div style="clear:both"></div>
  92. </div>
  93. </body>
  94. </html>