{"id":389,"date":"2021-11-07T19:05:56","date_gmt":"2021-11-07T10:05:56","guid":{"rendered":"http:\/\/blog.gurees.net\/?p=389"},"modified":"2021-11-07T19:05:56","modified_gmt":"2021-11-07T10:05:56","slug":"jetson-nano%e3%81%a7%e9%81%8a%e3%82%93%e3%81%a7%e3%81%bf%e3%82%8b%e6%ba%96%e5%82%99%e7%b7%a8","status":"publish","type":"post","link":"https:\/\/blog.gurees.net\/?p=389","title":{"rendered":"Jetson Nano\u3067\u904a\u3093\u3067\u307f\u308b(\u6e96\u5099\u7de8)"},"content":{"rendered":"\n<p>ML\u306e\u8a71\u984c\u304c\u7d9a\u304d\u307e\u3059\u304c\u3001Jetson Nano\u3092\u8cb7\u3063\u305f\u306e\u3067\u3001\u904a\u3093\u3067\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3068\u308a\u3042\u3048\u305a\u306fTF1.5 + Keras\u304c\u52d5\u304b\u305b\u308b\u3068\u3053\u307e\u3067\u76ee\u6307\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>SD\u30ab\u30fc\u30c9\u3092\u66f8\u3044\u3066\u521d\u671f\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u306f\u5272\u611b\u3067\u3059\u3002\u516c\u5f0f\u3092\u898b\u308c\u3070\u3055\u3057\u3066\u5d4c\u308b\u3068\u3053\u308d\u306f\u7121\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306fJetPack4.6\u3067\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306fpython2\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u6c17\u306b\u5165\u3089\u306a\u3044\u306e\u30673\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ sudo update-alternatives --install \/usr\/bin\/python python \/usr\/bin\/python2 100\n$ sudo update-alternatives --install \/usr\/bin\/python python \/usr\/bin\/python3 150\n$ python --version\nPython 3.6.9<\/pre>\n\n\n\n<p>\u6b21\u306b\u5fc5\u8981\u305d\u3046\u306a\u30c4\u30fc\u30eb\u3092\u5165\u308c\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran\n$ sudo apt-get install python3-pip\n$ sudo pip3 install -U pip testresources setuptools==49.6.0 \n$ sudo apt-get install libfreetype6-dev pkg-config\n$ sudo apt-get install graphviz graphviz-dev\n$ sudo pip3 install jetson-stats<\/pre>\n\n\n\n<p>\u6b21\u306b\u4eee\u60f3\u74b0\u5883\u3092\u4f5c\u3063\u3066TensorFlow\u3068Keras\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ python -m venv .venv\n$ source .venv\/bin\/activate\n(.venv) $ pip3 install -U --no-deps numpy==1.19.4 future==0.18.2 mock==3.0.5 keras_preprocessing==1.1.2 keras_applications==1.0.8 gast==0.4.0 protobuf pybind11 cython pkgconfig\n(.venv) $ pip3 install --extra-index-url https:\/\/developer.download.nvidia.com\/compute\/redist\/jp\/v46 tensorflow==1.15.5\n(.venv) $ pip3 install keras==2.3.1\n(.venv) $ pip3 install matplotlib==2.2.5 opencv-python pydot\n(.venv) $ deactivate<\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u6982\u306d\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306f\u305a\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3042\u3068\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u52d5\u304b\u3059\u3068\u304d\u306f\u3001\u4eee\u60f3\u74b0\u5883\u306e\u7acb\u3061\u4e0a\u3052\u3068\u3001\u5909\u6570\u306e\u30bb\u30c3\u30c8\u304c\u5fc5\u8981\u3067\u3059\u3002\u4ee5\u4e0b\u3067\u3084\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ source .venv\/bin\/activate\n(.venv) $ export OPENBLAS_CORETYPE=ARMV8<\/pre>\n\n\n\n<p>\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u30671.15.5\u3067\u66f8\u3044\u305f\u306e\u30b3\u30fc\u30c9\u306f\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u30e1\u30e2\u30ea\u306f\u30b7\u30b9\u30c6\u30e0\u5171\u6709\u30674GB\u3057\u304b\u306a\u3044\u306e\u3067\u3001\u30d0\u30c3\u30c1\u30b5\u30a4\u30ba\u3092\u4e0b\u3052\u305f\u308a\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>P106(1280 CUDA Core)\u3067\u30d0\u30c3\u30c1\u30b5\u30a4\u30ba=32\u304c0.4\u79d2\u7a0b\u5ea6\u306e\u30e2\u30c7\u30eb\u3092Jetson(128 CUDA Core)\u3067\u306f\u30d0\u30c3\u30c1\u30b5\u30a4\u30ba=1\u30670.6\u79d2\u3050\u3089\u3044\u306a\u306e\u3067\u3001\u307e\u3042\u3053\u3093\u306a\u3082\u3093\u304b\u306a\u3041\u3063\u3066\u8a00\u3063\u305f\u3068\u3053\u308d\u3067\u3059\u3002GPU\u30af\u30ed\u30c3\u30af\u3084\u30e1\u30e2\u30ea\u306e\u5e2f\u57df\u3082\u5168\u7136\u3057\u3087\u307c\u3044\u306e\u3067\u4ed5\u65b9\u306a\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u30e2\u30c7\u30eb\u306f\u5c0f\u3055\u3051\u308c\u3070\u52d5\u304f\u306e\u304c\u308f\u304b\u3063\u305f\u306e\u3067\u3001\u5c0f\u898f\u6a21\u306a\u5b9f\u9a13\u306fJetson\u3067\u3084\u308c\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ML\u306e\u8a71\u984c\u304c\u7d9a\u304d\u307e\u3059\u304c\u3001Jetson Nano\u3092\u8cb7\u3063\u305f\u306e\u3067\u3001\u904a\u3093\u3067\u307f\u307e\u3059\u3002 \u3068\u308a\u3042\u3048\u305a\u306fTF1.5 + Keras\u304c\u52d5\u304b\u305b\u308b\u3068\u3053\u307e\u3067\u76ee\u6307\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-389","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/posts\/389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=389"}],"version-history":[{"count":1,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions"}],"predecessor-version":[{"id":390,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions\/390"}],"wp:attachment":[{"href":"https:\/\/blog.gurees.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}