From 84b15c44cb57e4d5c8c5b9fc60557751800b3a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rainer=20Barei=C3=9F?= Date: Sat, 9 Sep 2023 18:18:07 +0200 Subject: [PATCH 1/2] updated setup_jetson_nano.md for Jetson JetPack 5.12 and DC5.0dev3 --- docs/guide/robot_sbc/setup_jetson_nano.md | 33 +++++++++++++++-------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/docs/guide/robot_sbc/setup_jetson_nano.md b/docs/guide/robot_sbc/setup_jetson_nano.md index 2c93ad79..98424293 100644 --- a/docs/guide/robot_sbc/setup_jetson_nano.md +++ b/docs/guide/robot_sbc/setup_jetson_nano.md @@ -171,7 +171,7 @@ Later on you can add the `CAMERA_TYPE="WEBCAM"` in myconfig.py. Instructions for the latest code from the `main` branch. Note the installation differs between the two available OSs. On Jetson you need to -install Jetpack 5.0.2. +install Jetpack 5.1.2. ### Installation on Jetson Xavier (or newer Jetson boards) @@ -184,7 +184,7 @@ install Jetpack 5.0.2. #### Step 1c: Flash Operating System -These instructions work for Jetpack 5.0.2. +These instructions work for Jetpack 5.1.2. Please install the Jetpack image from [jetson-nx-developer-kit-sd-card-image.zip](https://developer.nvidia.com/jetson-nx-developer-kit-sd-card-image). @@ -224,15 +224,15 @@ sudo systemctl disable nvgetty #### Step 3c: Setup python environment -* Step 1: Install mamba-forge +* Step 1: Install virtualenv -Download and install Miniconda and install `mamba`. +Download and install `virtualenv`. ```bash -wget https://repo.anaconda.com/miniconda/Miniconda3-py38_23.1.0-1-Linux-aarch64.sh -chmod u+x ./Miniconda3-py38_23.1.0-1-Linux-aarch64.sh -bash ./Miniconda3-py38_23.1.0-1-Linux-aarch64.sh -conda install mamba -n base -c conda-forge +pip3 install virtualenv +python3 -m virtualenv -p python3 env --system-site-packages +echo "source env/bin/activate" >> ~/.bashrc +source ~/.bashrc ``` * Step 2: Download and install Donkey Car @@ -245,12 +245,23 @@ cd projects git clone https://github.com/autorope/donkeycar cd donkeycar git checkout main -mamba env create -f install/envs/jetson.yml -conda activate donkey -pip install -e .[nano] +pip3 install -e .[nano] pip install -U albumentations --no-binary qudida,albumentations sudo chmod 666 /dev/gpiochip* +``` +* Step 2a: Download and install tensorflow +Follow the [NVIDIA instructions to install tensorflow](https://docs.nvidia.com/deeplearning/frameworks/install-tf-jetson-platform/index.html) +```bash +pip3 install -U numpy grpcio absl-py py-cpuinfo psutil portpicker six mock requests gast h5py astor termcolor protobuf keras-applications keras-preprocessing wrapt google-pasta setuptools testresources +pip3 install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v512 tensorflow==2.12.0+nv23.06 +``` + +* Step 2b: additional installs +```bash +pip install kivy pillow pylint pytest pytest-cov codecov moviepy PrettyTable mypy pyyaml fastai +pip uninstall opencv-python-headless +pip install kivy==2.1.0 ``` * Step 3: Check the TF and OpenCV installation From a2fb11016091e180b5201ebdfea9538107e4c8ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rainer=20Barei=C3=9F?= Date: Sat, 9 Sep 2023 21:22:56 +0200 Subject: [PATCH 2/2] Update setup_jetson_nano.md, kivy==2.1.0 fixed --- docs/guide/robot_sbc/setup_jetson_nano.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/guide/robot_sbc/setup_jetson_nano.md b/docs/guide/robot_sbc/setup_jetson_nano.md index 98424293..2dd0cbaa 100644 --- a/docs/guide/robot_sbc/setup_jetson_nano.md +++ b/docs/guide/robot_sbc/setup_jetson_nano.md @@ -259,9 +259,8 @@ pip3 install --extra-index-url https://developer.download.nvidia.com/compute/red * Step 2b: additional installs ```bash -pip install kivy pillow pylint pytest pytest-cov codecov moviepy PrettyTable mypy pyyaml fastai +pip install kivy==2.1.0 pillow pylint pytest pytest-cov codecov moviepy PrettyTable mypy pyyaml fastai pip uninstall opencv-python-headless -pip install kivy==2.1.0 ``` * Step 3: Check the TF and OpenCV installation