Skip to content

Instantly share code, notes, and snippets.

@naseemap47
Last active November 1, 2023 11:27
Show Gist options
  • Save naseemap47/3d0c9ac54e0b57999b4342bc2f4d4a8c to your computer and use it in GitHub Desktop.
Save naseemap47/3d0c9ac54e0b57999b4342bc2f4d4a8c to your computer and use it in GitHub Desktop.
Setup Jetson Inference on Jetson Nano
sudo apt update
sudo apt upgrade -y
# PIP
sudo apt install python3-pip -y
# Jetson Fan
sudo apt install python3-dev -y
git clone https://github.com/Pyrestone/jetson-fan-ctl.git
cd jetson-fan-ctl
sudo ./install.sh
cd
# jetson-inference
sudo apt-get update
sudo apt-get install git cmake libpython3-dev python3-numpy -y
git clone --recursive https://github.com/dusty-nv/jetson-inference
cd jetson-inference
mkdir build
cd build
cmake ../
make -j$(nproc)
sudo make install
sudo ldconfig
# [gstreamer] gstDecoder – failed to retrieve next image buffer
cmake -DENABLE_NVMM=OFF ../
make
sudo make install
cd
# PyTorch v1.10.0
sudo apt-get install -y libopenblas-base libopenmpi-dev -y
wget https://nvidia.box.com/shared/static/fjtbno0vpo676a25cgvuqc1wty0fkkg6.whl -O torch-1.10.0-cp36-cp36m-linux_aarch64.whl
pip3 install torch-1.10.0-cp36-cp36m-linux_aarch64.whl
rm torch-1.10.0-cp36-cp36m-linux_aarch64.whl
# Torchvision v0.11.1
sudo apt install -y libjpeg-dev zlib1g-dev -y
git clone --branch v0.11.1 https://github.com/pytorch/vision torchvision
cd torchvision
sudo python3 setup.py install
cd
# JTOP
sudo -H pip3 install jetson-stats
sudo systemctl restart jtop.service
# reboot
# Swap Memory on the Jetson Nano
git clone https://github.com/JetsonHacksNano/resizeSwapMemory.git
cd resizeSwapMemory
./setSwapMemorySize -g 4
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment