5
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Jetson TX2にKerasをインストールする

Posted at

Jetson TX2にKerasをインストールする

  • 環境: JetPack 3.1 introduces L4T 28.1

レポジトリの追加

sudo add-apt-repository universe
sudo apt-get update
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

必要なパッケージのインストール

sudo apt-get install oracle-java8-installer -y
sudo apt-get install libblas-dev liblapack-dev python-dev idle nano python-pip

pipのアップグレード

sudo pip install --upgrade pip

bazelのインストール

wget --no-check-certificate https://github.com/bazelbuild/bazel/releases/download/0.7.0/bazel-0.7.0-dist.zip
unzip bazel-0.7.0-dist.zip -d bazel-0.7.0-dist
cd bazel-0.7.0-dist/
sudo chmod -R ug+rwx $HOME/bazel-0.7.0-dist
sudo ./compile.sh 
sudo cp output/bazel /usr/local/bin

JetsonTX1/Tx2用のwhlをダウンロード

wget --no-check-certificate https://github.com/peterlee0127/tensorflow-tx2.git

TensorFlowインストール

sudo pip install tensorflow-1.3.0-cp27-cp27mu-linux_aarch64.whl

h5を利用する為のライブラリのインストール

sudo apt-get install libhdf5-dev

Kerasインストール

sudo pip install keras

最後に

  • "import keras"をしてインポートできれば完了です。
    • "ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory"がでたら以下のやつを実行してみて下さい。
       export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64/

参考

http://nicholaspropes.com/entries/general/installing-jetpack-3-1-on-jetson-tx2-with-tensorflow-1-3-keras---hdf5---h5-
https://github.com/peterlee0127/tensorflow-tx2
https://github.com/jetsonhacks/installTensorFlowTX2
https://github.com/bazelbuild/bazel/releases

5
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?