You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To install DepthAI on Jetson Nano, perform the following steps, after completing a fresh install and setup. On the first log in,
93
+
**do not** immediately run updates.
94
+
95
+
This first step is optional: go to the *Software* (App Store) and delete the apps or software that you probably will not use.
96
+
97
+
Open a terminal window and run the following commands:
98
+
99
+
.. code-block:: bash
100
+
101
+
sudo apt update && sudo apt upgrade
102
+
sudo reboot now
103
+
104
+
Change the size of your SWAP. These instructions come from the `Getting Started with AI on Jetson Nano <https://developer.nvidia.com/embedded/learn/jetson-ai-certification-programs>`__ from nvidia:
105
+
106
+
.. code-block:: bash
107
+
108
+
# Disable ZRAM:
109
+
sudo systemctl disable nvzramconfig
110
+
# Create 4GB swap file
111
+
sudo fallocate -l 4G /mnt/4GB.swap
112
+
sudo chmod 600 /mnt/4GB.swap
113
+
sudo mkswap /mnt/4GB.swap
114
+
115
+
If you have an issue with the final command, you can try the following:
116
+
117
+
.. code-block:: bash
118
+
119
+
sudo vi /etc/fstab
120
+
121
+
# Add this line at the bottom of the file
122
+
/mnt/4GB.swap swap swap defaults 0 0
123
+
124
+
# Reboot
125
+
sudo reboot now
126
+
127
+
The next step is to install :code:`pip` and :code:`python3`:
128
+
129
+
.. code-block:: bash
130
+
131
+
sudo -H apt install -y python3-pip
132
+
133
+
After that, install and set up virtual environment:
134
+
135
+
.. code-block:: bash
136
+
137
+
sudo -H pip3 install virtualenv virtualenvwrapper
138
+
139
+
Add following lines to the bash script:
140
+
141
+
.. code-block:: bash
142
+
143
+
sudo vi ~/.bashrc
144
+
145
+
# Virtual Env Wrapper Configuration
146
+
export WORKON_HOME=$HOME/.virtualenvs
147
+
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
148
+
source /usr/local/bin/virtualenvwrapper.sh
149
+
150
+
Save and reload the script by running the command :code:`source ~/.bashrc`. Then create a virtual environment (in this example it's called :code:`depthAI`).
151
+
152
+
.. code-block:: bash
153
+
154
+
mkvirtualenv depthAI -p python3
155
+
156
+
157
+
**Note!** Before installing :code:`depthai`, make sure you're in the virtual environment.
Last step is to edit :code:`.bashrc` with the line:
169
+
170
+
.. code-block:: bash
171
+
172
+
echo"export OPENBLAS_CORETYPE=AMRV8">>~/.bashrc
173
+
174
+
175
+
Navigate to the folder with :code:`depthai` examples folder, run :code:`python install_requirements.py` and then run :code:`python 01_rgb_preview.py`.
176
+
177
+
Solution provided by `iacisme <https://github.com/iacisme>`__ via our `Discord <https://discord.com/channels/790680891252932659/795742008119132250>`__ channel.
0 commit comments