Can I install keras on jetson nano?

Hi,
Can I install keras on jetson nano?

Thank you in advance

Hi fortis342, you should be able to, please refer to these posts:

The short answer is Yes. I followed the following steps to install Keras successfully.

Step #1: Install Tensorflow:
https://devtalk.nvidia.com/default/topic/1048776/jetson-nano/official-tensorflow-for-jetson-nano-/
(Follow the steps from the link above)

NOTE: Step #1 will be able to help you install most of the dependencies keras needs.

Step #2: Install scipy, I installed scipy by running the following command-line:

$sudo pip3 install scipy

NOTE: This steps is taking a long time. please be patient. I actually met a challenge during waiting, my nano goes to sleep after inactive for 5 mins and cannot be wake up.

Suggestion: 1) Be very very patient. 2) Change your system settings - Never allow your nano go to sleep.

INFO: I actually try to install scipy during night and waited for more than 40 mins and then I went to sleep. In the next morning, it complete the installation successfully.

Step #3: Install keras by running the following command-line:

$sudo pip3 install keras

INFO: It took less than 1 minute to complete.

I will also listed the dependencies of install keras below for your reference:

Requirement already satisfied: keras-applications>=1.0.6 in /usr/local/lib/python3.6/dist-packages (from keras) (1.0.8)
Requirement already satisfied: six>=1.9.0 in /usr/local/lib/python3.6/dist-packages (from keras) (1.12.0)
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from keras) (3.12)
Requirement already satisfied: keras-preprocessing>=1.0.5 in /usr/local/lib/python3.6/dist-packages (from keras) (1.1.0)
Requirement already satisfied: h5py in /usr/local/lib/python3.6/dist-packages (from keras) (2.9.0)
Requirement already satisfied: scipy>=0.14 in /usr/local/lib/python3.6/dist-packages (from keras) (1.3.1)
Requirement already satisfied: numpy>=1.9.1 in /usr/local/lib/python3.6/dist-packages (from keras) (1.17.0)
Installing collected packages: keras
Successfully installed keras-2.2.4

1 Like

Cool! Thanks for sharing!!