{"id":282,"date":"2018-02-14T02:51:11","date_gmt":"2018-02-13T17:51:11","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=282"},"modified":"2018-11-23T18:33:17","modified_gmt":"2018-11-23T09:33:17","slug":"%e3%82%b3%e3%83%bc%e3%83%89%e5%bf%85%e8%a6%81%e3%81%aa%e3%81%97%ef%bc%81%e7%94%bb%e5%83%8f%e3%82%92%e9%ab%98%e8%a7%a3%e5%83%8f%e5%ba%a6%e5%8c%96%e3%81%99%e3%82%8bpython%e3%82%b3%e3%83%bc%e3%83%89","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=282","title":{"rendered":"\u30b3\u30fc\u30c9\u5fc5\u8981\u306a\u3057\uff01\u753b\u50cf\u3092\u9ad8\u89e3\u50cf\u5ea6\u5316\u3059\u308bPython\u30b3\u30fc\u30c9\uff08RAISR\uff09"},"content":{"rendered":"<p>\u7a81\u7136\u3067\u3059\u304c\u3001<strong>Google\u304c\u4f4e\u89e3\u50cf\u5ea6\u306e\u753b\u50cf\u3092\u6a5f\u68b0\u5b66\u7fd2\u3067\u9ad8\u89e3\u50cf\u5ea6\u5316\u3059\u308b\u300cRAISR\u300d\u3068\u3044\u3046\u6280\u8853\u3092\u767a\u8868\u3057\u305f<\/strong>\u306e\u3092\u77e5\u3063\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u5f53\u6642\u30e1\u30a4\u30f3\u3067python\u3092\u4f7f\u3063\u3066\u305f\u3093\u3067\u3001\u3053\u306e\u6280\u8853\u3092\u4f7f\u3048\u306a\u3044\u304b\u8abf\u3079\u56de\u3063\u305f\u7d50\u679c\u3001\u3069\u3046\u3084\u3089\u30b3\u30fc\u30c9\u306f\u516c\u958b\u3055\u308c\u3066\u306a\u3044\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u3002\uff08\u30db\u30f3\u30c8\u306f\u3042\u3063\u305f\u306e\u304b\u3082\u30fb\u30fb\u30fb\u30fb\u3067\u3059\u3051\u3069\u3002\uff09<\/p>\n<p>\u3067\u3001\u3053\u306e\uff13\u9023\u4f11\u306b\u8d85\u5143\u6c17\u306a\u59ea\u3063\u5b50\uff12\u4eba\u3068\u904a\u3076\u5408\u9593\u306b\u691c\u7d22\u3057\u3066\u307f\u308b\u3068\u3001\u306a\u3093\u3068python\u30b3\u30fc\u30c9\u3067<strong>\u516c\u958b\u3055\u308c\u3066\u3044\u308bGitHub\u30da\u30fc\u30b8\u3092\u767a\u898b<\/strong>\uff01<\/p>\n<p>\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u3001\u5b9f\u969b\u306b\u4ee5\u4e0b\u306e\u30e2\u30ca\u30ea\u30b6\u306e\u9854\u5199\u771f\u3067\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-286\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/02\/Mona_Lisa_by_Leonardo_da_Vinci_from_C2RMF_retouched_detail_grayscale.jpg\" alt=\"\" width=\"128\" height=\"128\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/02\/Mona_Lisa_by_Leonardo_da_Vinci_from_C2RMF_retouched_detail_grayscale.jpg 128w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/02\/Mona_Lisa_by_Leonardo_da_Vinci_from_C2RMF_retouched_detail_grayscale-100x100.jpg 100w\" sizes=\"auto, (max-width: 128px) 100vw, 128px\" \/><br \/>\n<em>\uff08\u30b5\u30a4\u30ba\u306f\u3001128 x 128px\uff09<\/em><\/p>\n<h2>\uff11\uff0e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h2>\n<p>\u305d\u306e\u540d\u3082\u30b8\u30e3\u30b9\u30c8\u300c<a href=\"https:\/\/github.com\/movehand\/raisr\" target=\"_blank\" rel=\"noopener\">RAISR<\/a>\u300d\u3068\u3044\u3046\u540d\u3067\u30b3\u30fc\u30c9\u304c\u516c\u958b\u3055\u308c\u3066\u308b\u3093\u3067\u3001\u3053\u308c\u3092<\/p>\n<pre><strong>git clone https:\/\/github.com\/movehand\/raisr.git<\/strong><\/pre>\n<p>\u3068\u3059\u308b\u304b\u3001\u76f4\u63a5\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u89e3\u51cd\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u306b\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30d5\u30a9\u30eb\u30c0\u304c\u3042\u308a\u307e\u3059\u3051\u3069\u3001\u91cd\u8981\u306a\u306e\u306f\u4ee5\u4e0b\uff13\u3064\u306e\u30d5\u30a9\u30eb\u30c0\u3060\u3051\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>train<\/strong><\/li>\n<li><strong>test<\/strong><\/li>\n<li><strong>results<\/strong><\/li>\n<\/ul>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u203b\u6ce8\uff11\uff1a \u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f<strong>python3<\/strong>\u3067\u306a\u3044\u3068\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b\u6ce8\uff12\uff1a \u3042\u3068\u3001\u4ee5\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001pip\u306a\u3069\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\uff08\u50d5\u306e\u5834\u5408\u306fpython2\u7cfb\u3068python\uff13\u7cfb\u304c\u5171\u5b58\u3057\u3066\u305f\u3093\u3067\u3001pip3\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\uff09<\/p>\n<pre><strong>pip3 install opencv-python numpy scipy pillow matplotlib\r\n<\/strong><\/pre>\n<h2>\uff12\uff0e\u9ad8\u89e3\u50cf\u5ea6\u306e\u753b\u50cf\u3092\u5b66\u7fd2\u3055\u305b\u308b<\/h2>\n<p>RAISR\u306f\u6a5f\u68b0\u5b66\u7fd2\u30d7\u30ed\u30b0\u30e9\u30e0\u306a\u306e\u3067\u3001\u307e\u305a\u306f<strong>train.py<\/strong>\u3067\u5b66\u7fd2\u3092\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<strong><a href=\"https:\/\/pixabay.com\/ja\/\" target=\"_blank\" rel=\"noopener\">pixabay<\/a><\/strong>\u306a\u3069\u3067\u89e3\u50cf\u5ea6\u306e\u9ad8\u3044\u753b\u50cf\u3092<strong>train\u30d5\u30a9\u30eb\u30c0<\/strong>\u306b\u8a2d\u7f6e\u3057\u3066\u3001\u6b21\u306e<span style=\"font-size: 1rem;\">\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p>\uff08\u305f\u3060\u3057\u3001\u304b\u306a\u308a\u6642\u9593\u304c\u304b\u304b\u308b\u3093\u3067\u3001\u307e\u305a\u306f\uff11\u679a\u3060\u3051\u3067\u5b9f\u884c\u3059\u308b\u306e\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\uff09<\/p>\n<pre><strong>sudo python3 train.py<\/strong><\/pre>\n<p><span style=\"font-size: 1rem;\">\u3067\u306f\u3001\u753b\u50cf\u3092\u9ad8\u89e3\u50cf\u5ea6\u5316\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/span><\/p>\n<h2>\uff13\uff0e\u753b\u50cf\u3092\u9ad8\u89e3\u50cf\u5ea6\u5316\u3059\u308b<\/h2>\n<p><strong>test\u30d5\u30a9\u30eb\u30c0<\/strong>\u306b\u9ad8\u89e3\u50cf\u5ea6\u306b\u3057\u305f\u3044\u753b\u50cf\u3092\u4fdd\u5b58\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>sudo python3 test.py<\/pre>\n<p>\u203b\u3053\u308c\u3082\u753b\u50cf\u304c\u5927\u304d\u3044\u3068\u7d50\u69cb\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u306f\u3058\u3081\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u306f\u753b\u50cf\u3067\u30c8\u30e9\u30a4\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-286\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/02\/Mona_Lisa_by_Leonardo_da_Vinci_from_C2RMF_retouched_detail_grayscale.jpg\" alt=\"\" width=\"128\" height=\"128\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/02\/Mona_Lisa_by_Leonardo_da_Vinci_from_C2RMF_retouched_detail_grayscale.jpg 128w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/02\/Mona_Lisa_by_Leonardo_da_Vinci_from_C2RMF_retouched_detail_grayscale-100x100.jpg 100w\" sizes=\"auto, (max-width: 128px) 100vw, 128px\" \/><\/p>\n<p>\u3067\u3001test.py\u306e\u5b9f\u884c\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001<strong>results\u30d5\u30a9\u30eb\u30c0<\/strong>\u306b\u5b8c\u6210\u3057\u305f\u753b\u50cf\u304c\u4f5c\u3089\u308c\u3066\u3044\u307e\u3059\u3002\uff08\u305f\u3060\u3057\u3001\u3053\u306e\u753b\u50cfjpg\u3067\u306f\u306a\u304f\u3001\u61d0\u304b\u3057\u306ebmp\u3067\u3059\uff09<\/p>\n<p>\u305d\u306e\u753b\u50cf\u304c\u3053\u3061\u3089\uff08jpg\u5909\u63db\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u30ea\u30b5\u30a4\u30ba\u306f\u3057\u3066\u307e\u305b\u3093\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-284\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/02\/Mona_Lisa_by_Leonardo_da_Vinci_from_C2RMF_retouched_detail_grayscale_result.jpg\" alt=\"\" width=\"255\" height=\"255\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/02\/Mona_Lisa_by_Leonardo_da_Vinci_from_C2RMF_retouched_detail_grayscale_result.jpg 255w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/02\/Mona_Lisa_by_Leonardo_da_Vinci_from_C2RMF_retouched_detail_grayscale_result-150x150.jpg 150w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/02\/Mona_Lisa_by_Leonardo_da_Vinci_from_C2RMF_retouched_detail_grayscale_result-100x100.jpg 100w\" sizes=\"auto, (max-width: 255px) 100vw, 255px\" \/><\/p>\n<p>\u3069\u3046\u3067\u3057\u3087\u3046\uff1f\uff1f\u753b\u50cf\u30b5\u30a4\u30ba\u304c128\u30d4\u30af\u30bb\u30eb\u304b\u3089255\u30d4\u30af\u30bb\u30eb\u306b\u5927\u304d\u304f\u306a\u3063\u3066\u3044\u308b\u306e\u306b\u3001\u305d\u308c\u307b\u3069\u753b\u50cf\u306e\u52a3\u5316\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u308f\u304b\u308a\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306b\u3001128\u30d4\u30af\u30bb\u30eb\u306e\u753b\u50cf\u3092255\u30d4\u30af\u30bb\u30eb\u306b\u901a\u5e38\u306e\u65b9\u6cd5\u3067\u30ea\u30b5\u30a4\u30ba\u3057\u305f\u3082\u306e\u3068\u4e26\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u5de6\u304cRAISR\u3067\u4f5c\u6210\u3057\u305f\u753b\u50cf\u3067\u3001\u53f3\u304c\u30ea\u30b5\u30a4\u30ba\u3057\u305f\u3082\u306e\u3067\u3059\u3002<br \/>\n\u3053\u3046\u3084\u3063\u3066\u307f\u308b\u3068\u5de6\u306e\u65b9\u304c\u7dba\u9e97\u306a\u753b\u50cf\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304c\u3088\u304f\u5206\u304b\u308a\u307e\u3059\u306d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-285\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/02\/enhanced.jpg\" alt=\"\" width=\"510\" height=\"255\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/02\/enhanced.jpg 510w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/02\/enhanced-300x150.jpg 300w\" sizes=\"auto, (max-width: 510px) 100vw, 510px\" \/><\/p>\n<p>\u4ee5\u4e0a\u3001\u4eca\u56de\u306f\u3061\u3087\u3063\u3068\u3057\u305f\u30cd\u30bf\u7a0b\u5ea6\u306e\u304a\u8a71\u3067\u3059\u3051\u3069\u3001\u3053\u306e\u6280\u8853\u3092\u4f7f\u3048\u3070\u6614\u30ac\u30e9\u30b1\u30fc\u3067\u64ae\u5f71\u3057\u305f\u4f4e\u89e3\u50cf\u5ea6\u306e\u5199\u771f\u3082\u5c11\u3057\u306f\u30de\u30b7\u306a\u3082\u306e\u306b\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2>\u3061\u306a\u307f\u306b<\/h2>\n<p>GitHub\u306e\u30b3\u30fc\u30c9\u306f<strong>MIT\u30e9\u30a4\u30bb\u30f3\u30b9\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/strong>\u3044\u3084\u306f\u3084\u3059\u3054\u3044\u6642\u4ee3\u306b\u306a\u3063\u305f\u3082\u3093\u3067\u3059\u306d\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u307f\u306a\u3055\u3093\u3082\u305c\u3072\u4e00\u5ea6\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7a81\u7136\u3067\u3059\u304c\u3001Google\u304c\u4f4e\u89e3\u50cf\u5ea6\u306e\u753b\u50cf\u3092\u6a5f\u68b0\u5b66\u7fd2\u3067\u9ad8\u89e3\u50cf\u5ea6\u5316\u3059\u308b\u300cRAISR\u300d\u3068\u3044\u3046\u6280\u8853\u3092\u767a\u8868\u3057\u305f\u306e\u3092\u77e5\u3063\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u304b\u3002 \u5f53\u6642\u30e1\u30a4\u30f3\u3067python\u3092\u4f7f\u3063\u3066 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=282\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u30b3\u30fc\u30c9\u5fc5\u8981\u306a\u3057\uff01\u753b\u50cf\u3092\u9ad8\u89e3\u50cf\u5ea6\u5316\u3059\u308bPython\u30b3\u30fc\u30c9\uff08RAISR\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":287,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[120,39],"tags":[40],"class_list":["post-282","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opencv","category-python","tag-40"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=282"}],"version-history":[{"count":3,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/282\/revisions"}],"predecessor-version":[{"id":2647,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/282\/revisions\/2647"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/287"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}