{"id":1369,"date":"2016-06-22T11:11:54","date_gmt":"2016-06-22T02:11:54","guid":{"rendered":"http:\/\/research.itplants.com\/?p=1369"},"modified":"2016-06-22T11:13:02","modified_gmt":"2016-06-22T02:13:02","slug":"tensorflow","status":"publish","type":"post","link":"https:\/\/research.itplants.com\/?p=1369","title":{"rendered":"TensorFlow"},"content":{"rendered":"<p>\u4eca\u3001\u6025\u6fc0\u306b\u6d41\u884c\u308a\u306b\u306a\u3063\u305f\u3001\u6df1\u5c64\u5b66\u7fd2\u3092\u3084\u3063\u3066\u307f\u3088\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u3001Google\u306eTensorFlow\u3092\u4f7f\u3063\u3066\u30c7\u30a3\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u30fb\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u306f\u30011986\u5e74\u9803\u306b\u3001\u8aa4\u5dee\u9006\u4f1d\u642c\u6cd5\u304c\u6d41\u884c\u3063\u305f\u9803\u306b\u3001\u753b\u50cf\u8a8d\u8b58\u306b\u4f7f\u3063\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u9803\u306f\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30d1\u30ef\u30fc\u304c\u8ca7\u5f31\u3060\u3063\u305f\u306e\u3067\u3001\u753b\u50cf\u306e\u8f2a\u90ed\u3092\u62bd\u51fa\u3057\u3066\u3001\u4f4d\u7f6e\u3084\u30b9\u30b1\u30fc\u30eb\u306b\u4e0d\u5909\u306a\u7279\u5fb4\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\uff13\u5c64\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u306b\u5b66\u7fd2\u3055\u305b\u3066\u3001\u8b58\u5225\u3055\u305b\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u6628\u4eca\u3001\u5b66\u7fd2\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u6539\u826f\u3084\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30d1\u30ef\u30fc\u306e\u5897\u52a0\u3067\u3001\u3067\u304d\u308b\u3053\u3068\u304c\u5897\u3048\u3066\u304d\u307e\u3057\u305f\u3002\u753b\u50cf\u8a8d\u8b58\u3067\u306f\u3001\u4eba\u9593\u4e26\u307f\u306e\u7cbe\u5ea6\u304c\u51fa\u305b\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3057\u3001\u56f2\u7881\u3067\u3082\u30c1\u30e3\u30f3\u30d4\u30aa\u30f3\u3092\u8ca0\u304b\u305b\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u30011986\u5e74\u6642\u4ee3\u3067\u3082\u554f\u984c\u3067\u3042\u3063\u305f\u3001\u300c\u4f55\u3092\u5b66\u7fd2\u3057\u3066\u3044\u308b\u306e\u304b\u5206\u304b\u3089\u306a\u3044\u300d\u3068\u3044\u3046\u554f\u984c\u304c\u89e3\u6c7a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u4f55\u304b\u3092\u5b66\u7fd2\u3057\u3066\u3001\u306a\u3093\u3068\u306a\u304f\u4e0a\u624b\u304f\u3084\u3063\u3066\u304f\u308c\u308b\u304b\u3089\u4f7f\u3048\u308b\u3001\u3068\u3044\u3063\u305f\u7a0b\u5ea6\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>Google\u304c\u516c\u958b\u3057\u305f\u3001TensorFlow\uff08\u30c6\u30f3\u30bd\u30eb\u30d5\u30ed\u30fc\uff09\u306f\u3001\u30c6\u30f3\u30bd\u30eb\uff08\u591a\u91cd\u914d\u5217\u306e\u96c6\u5408\u306e\u3088\u3046\u306a\u3082\u306e\uff09\u3092\u4e0a\u624b\u304f\u51e6\u7406\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002Python\u3068C++\u3067\u4f7f\u3048\u307e\u3059\u3002Mac\u3068Ubuntu\u3067\u4f7f\u3048\u307e\u3059\u304c\u3001Windows\u3067\u306f\u82e6\u52b4\u3059\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u5148\u305a\u306f\u3001TensorFlow\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002MacOSX\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p># python \u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/p>\n<p>$ python \u2014version<\/p>\n<p>Python 2.7.10<\/p>\n<p>TensorFlow\u306f\u3001\u30d0\u30fc\u30c1\u30e3\u30eb\u74b0\u5883\u3067\u4f7f\u3046\u306e\u304c\u826f\u3044\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<p># virtualenv\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>$ easy_install pip<\/p>\n<p>$ pip install virtualenv<\/p>\n<p>&nbsp;<\/p>\n<p># virtualenv\u74b0\u5883\u306e\u4f5c\u6210<\/p>\n<p>$ mkdir ~\/tensorflow<\/p>\n<p>$ virtualenv -\u2014system-site-packages ~\/tensorflow<\/p>\n<p>&nbsp;<\/p>\n<p># \u4f5c\u6210\u3057\u305fvirtualenv\u74b0\u5883\u306b\u306f\u3044\u308b<\/p>\n<p>$ cd ~\/tensorflow<\/p>\n<p>$ source ~\/tensorflow\/bin\/activate<\/p>\n<p>&nbsp;<\/p>\n<p># TensorFlow\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>(tensorflow)$ pip install \u2014upgrade https:\/\/storage.googleapis.com\/tensorflow\/mac\/tensorflow-0.5.0-py2-none-any.whl<\/p>\n<p># iPython notebook<\/p>\n<p>pip install python notebook<\/p>\n<p>\u3053\u308c\u3092\u4f7f\u3046\u3068\u3001Mathmatica\u306e\u3088\u3046\u306b\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>(tensorflow)\u00a0$ python notebook<\/p>\n<p># \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/p>\n<pre><span class=\"nv\">$ <\/span>git clone https:\/\/github.com\/tensorflow\/tensorflow\r\n\u304b\u306a\u308a\u5145\u5b9f\u3057\u305f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/pre>\n<p># OpenCV\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>OpenCV\u304c\u4e0a\u624b\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305a\u306b\u82e6\u52b4\u3057\u307e\u3057\u305f\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3084\u308c\u3070\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&gt;brew install opencv<\/p>\n<p>#python\u3067\u4f7f\u3046\u5834\u5408<\/p>\n<p>$ pip install pyopencv<\/p>\n<p>collecting pyopencv<\/p>\n<p>Could not find a version that satisfies the requirement pyopencv (from versions: 2.0.wr1.0.1-demo, 2.0.wr1.0.1, 2.0.wr1.1.0, 2.1.0.wr1.0.0, 2.1.0.wr1.0.1, 2.1.0.wr1.0.2, 2.1.0.wr1.1.0, 2.1.0.wr1.2.0)<\/p>\n<p>No matching distribution found for pyopencv<\/p>\n<p>$ pip install pyopencv==2.1.0.wr1.2.0<\/p>\n<p># virtual environment\u30d5\u30a9\u30eb\u30c0\u30fc\u306bopencv\u306e\u30ea\u30f3\u30af\u3092\u306f\u308b\u3068\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b<\/p>\n<p>$ ln -s\u00a0 \/usr\/local\/lib\/python2.7\/site-packages\/cv* ~\/tensorflow\/lib\/python2.7\/site-packages\/<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u3001\u6025\u6fc0\u306b\u6d41\u884c\u308a\u306b\u306a\u3063\u305f\u3001\u6df1\u5c64\u5b66\u7fd2\u3092\u3084\u3063\u3066\u307f\u3088\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u3001Google\u306eTensorFlow\u3092\u4f7f\u3063\u3066\u30c7\u30a3\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u30fb\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002 \u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u306f\u30011986\u5e74\u9803\u306b\u3001\u8aa4\u5dee\u9006\u4f1d\u642c\u6cd5\u304c\u6d41\u884c\u3063\u305f\u9803\u306b&#8230;<\/p>\n<p><a class=\"more\" href=\"https:\/\/research.itplants.com\/?p=1369\"> Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":1371,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts\/1369"}],"collection":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1369"}],"version-history":[{"count":2,"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts\/1369\/revisions"}],"predecessor-version":[{"id":1372,"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts\/1369\/revisions\/1372"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/media\/1371"}],"wp:attachment":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}