{"id":2454,"date":"2018-01-31T10:48:00","date_gmt":"2018-01-31T02:48:00","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2454"},"modified":"2018-01-31T10:48:00","modified_gmt":"2018-01-31T02:48:00","slug":"%e6%9c%ba%e5%99%a8%e7%bc%96%e7%a8%8b-keras-%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2454","title":{"rendered":"\u673a\u5668\u7f16\u7a0b Keras \u6559\u7a0b"},"content":{"rendered":"<p>\n\tKeras \u662f\u4e00\u6b3e\u673a\u5668\u7f16\u7a0b\u8f6f\u4ef6\u3002\u5b83\u5229\u7528\u6df1\u5ea6\u5b66\u4e60\u6280\u672f\u53ef\u4ee5\u5c06\u8bbe\u8ba1\u6a21\u578b\u8f6c\u5316\u4e3a\u4ee3\u7801\u3002\u76ee\u524d\u5728 Github \u6392\u884c\u699c\u7b2c\u4e00\u540d\uff0c\u662f\u4e00\u4e2a\u68a6\u5e7b\u9879\u76ee\u3002\u795e\u7ecf\u7f51\u7edc\u901a\u8fc7\u6df1\u5ea6\u5b66\u4e60\uff0c\u81ea\u52a8\u628a\u8bbe\u8ba1\u7a3f\u53d8\u6210 HTML \u4ee3\u7801\u3002&nbsp;\u4f5c\u8005\u53f7\u79f0\u4e09\u5e74\u540e\uff0c\u4eba\u5de5\u667a\u80fd\u5f7b\u5e95\u6539\u53d8\u524d\u7aef\u5f00\u53d1\u3002\u4eca\u5929\u6211\u4eec\u4e00\u8d77\u6765\u7814\u7a76\u7814\u7a76\u5b83\u7684\u7528\u6cd5\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Keras\" src=\"https:\/\/camo.githubusercontent.com\/7aee7deacf38b8f9a2a230da4efbd96a96840b83\/68747470733a2f2f692e696d6775722e636f6d2f4c446d6f4c4c562e706e67\" style=\"width: 1043px;height: 453px\" \/>\n<\/p>\n<p>\n\tKeras \u662f\u4e00\u4e2a\u53ef\u4ee5\u5c06\u5c4f\u5e55\u622a\u56fe\u8f6c\u6362\u4e3a\u9759\u6001\u7f51\u7ad9\u7684\u795e\u7ecf\u7f51\u7edc\u3002\u5728\u4f7f\u7528\u5b83\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5148\u5b89\u88c5\u5b83\u3002\n<\/p>\n<h2>\n\t\u5b89\u88c5<br \/>\n<\/h2>\n<p>\n\tKeras \u6709\u4e24\u79cd\u5b89\u88c5\u65b9\u6cd5\uff0c\u4e00\u79cd\u662f\u5728 FloydHub \u4e91\u4e0a\uff0c\u4e00\u79cd\u662f\u5728\u672c\u5730\u5b89\u88c5\u3002\u5728 <a href=\"https:\/\/www.floydhub.com\/\" name=\"floydhub\" target=\"_blank\" title=\"floydhub\">FloydHub<\/a> \u4e0a\u7684\u5b89\u88c5\u65b9\u6cd5\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:bash;\">\r\npip install floyd-cli\r\nfloyd login\r\ngit clone https:\/\/github.com\/emilwallner\/Screenshot-to-code-in-Keras\r\ncd Screenshot-to-code-in-Keras\/floydhub \r\nfloyd init projectname\r\nfloyd run --gpu --env tensorflow-1.4 --data emilwallner\/datasets\/imagetocode\/2:data --data emilwallner\/datasets\/html_models\/1:weights --mode jupyter<\/pre>\n<p>\n\t\u76f8\u6bd4\u5728&nbsp;FloydHub \u4e0a\u64cd\u4f5c\uff0c\u6211\u66f4\u559c\u6b22\u5728\u672c\u5730\u7814\u7a76\u5b83\u3002\u4e0b\u9762\u5217\u4e3e\u5728\u672c\u5730\u5b89\u88c5\u4f7f\u7528\u5b83\u7684\u65b9\u6cd5\u3002\n<\/p>\n<p>\n\t\u4e0b\u8f7d&nbsp;https:\/\/github.com\/emilwallner\/Screenshot-to-code-in-Keras \uff0c\u5b83\u7684\u76ee\u5f55\u4e2d\u6709&nbsp;local \u90e8\u5206\u3002\n<\/p>\n<p>\n\t\u6211\u4eec\u53ea\u9700\u53ea\u9700\u4e0b\u9762\u7684\u547d\u4ee4\u5373\u53ef\u3002\n<\/p>\n<pre class=\"brush:bash;\">\r\npip install keras\r\npip install tensorflow\r\npip install pillow\r\npip install h5py\r\npip install jupyter\r\ngit clone https:\/\/github.com\/emilwallner\/Screenshot-to-code-in-Keras\r\ncd Screenshot-to-code-in-Keras\/local\r\njupyter notebook<\/pre>\n<h2>\n\t\u6587\u4ef6\u5939\u7ed3\u6784<br \/>\n<\/h2>\n<p>\n\tKeras \u4e2d\u7684\u6587\u4ef6\u5939\u7ed3\u6784\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:plain;\">\r\n| -floydhub                             \uff03\u5728Floyhub \r\n|   | -  Bootstrap                      \uff03 Bootstrap\u7248\u672c\r\n|   |   | -compiler                     \uff03\u7f16\u8bd1\u5668\u5c06\u4ee4\u724c\u8f6c\u6362\u4e3aHTML \/ CSS\uff08\u7531pix2code\uff09\r\n|   | -Hello_world                      \uff03 Hello World\u7248\u672c\r\n|   | -HTML                             \uff03 HTML\u7248\u672c\r\n|   |   | -resources\t\t\t\t\t\uff03www.xttblog.com\t\t\t\t\r\n|   |   |   | -Resources_for_index_file \uff03\u7528 CSS\u548c\u56fe\u7247\u6765\u6d4b\u8bd5index.html\u6587\u4ef6\r\n|   |   |   | -html                     \uff03 HTML\u6587\u4ef6\u5728\r\n|   |   |   | -images                   \uff03\u57f9\u8bad\u7684\u622a\u56fe\r\n| -local                                \uff03\u672c\u5730\u8bbe\u7f6e\r\n|   | -  Bootstrap                      \uff03 Bootstrap\u7248\u672c\r\n|   |   | -compiler                     \uff03\u7f16\u8bd1\u5668\u5c06\u4ee4\u724c\u8f6c\u6362\u4e3aHTML \/ CSS\uff08\u7531pix2code\uff09\r\n|   |   | -resources\t\t\t\t\t\t\t\t\t\t\t\r\n|   |   |   | -eval_light               \uff03 10\u6d4b\u8bd5\u56fe\u50cf\u548c\u6807\u8bb0\r\n|   | -Hello_world                      \uff03 Hello World\u7248\u672c\r\n|   | -HTML                             \uff03 HTML\u7248\u672c\r\n|   |   | -Resources_for_index_file     \uff03 CSS\uff0c\u56fe\u50cf\u548c\u811a\u672c\u6d4b\u8bd5index.html\u6587\u4ef6\r\n|   |   | -html                         \uff03 HTML\u6587\u4ef6\u5728\r\n|   |   | -images                       \uff03\u57f9\u8bad\u7684\u622a\u56fe\r\n|-readme_images                         \uff03\u81ea\u8ff0\u9875\u9762\u7684\u56fe\u50cf<\/pre>\n<p>\n\t\u5173\u4e8e Keras \u7684\u6a21\u578b\uff0c\u5927\u5bb6\u53ef\u4ee5\u5230 github \u4e0a\u5b66\u4e60\u3002\u5b83\u7684\u539f\u7406\u4e3b\u8981\u662f\u53c2\u8003&nbsp;<a href=\"https:\/\/arxiv.org\/abs\/1705.07962\" rel=\"nofollow\">pix2code paper<\/a>&nbsp;\u548c&nbsp;<a href=\"https:\/\/airbnb.design\/sketching-interfaces\/\" rel=\"nofollow\">sketching interfaces<\/a>\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2454\">\u673a\u5668\u7f16\u7a0b Keras \u6559\u7a0b<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>Keras \u662f\u4e00\u6b3e\u673a\u5668\u7f16\u7a0b\u8f6f\u4ef6\u3002\u5b83\u5229\u7528\u6df1\u5ea6\u5b66\u4e60\u6280\u672f\u53ef\u4ee5\u5c06\u8bbe\u8ba1\u6a21\u578b\u8f6c\u5316\u4e3a\u4ee3\u7801\u3002\u76ee\u524d\u5728 Github \u6392\u884c\u699c\u7b2c\u4e00\u540d [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[119,48,284,1598,441],"class_list":["post-2454","post","type-post","status-publish","format-standard","hentry","category-yyzt","tag-html5","tag-web","tag-284","tag-1598","tag-441"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2454"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2454\/revisions"}],"predecessor-version":[{"id":2455,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2454\/revisions\/2455"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}