In this section, you will install a few dependencies into your Ubuntu environment. You’ll need a working Python 3.10+ environment with some ML and system dependencies.
Start by making sure Python is installed by verifying that the version is >3.10:
python3 --version
Next, install a few additional packages:
sudo apt update
sudo apt install python3-venv python-is-python3 gcc make python3-dev -y
The example notebooks are open-sourced in a GitHub repository. Start by cloning it:
git clone https://github.com/arm/neural-graphics-model-gym-examples.git
cd neural-graphics-model-gym-examples
From inside the neural-graphics-model-gym-examples/
folder, run the setup script:
./setup.sh
This will do the following:
nb-env
ng-model-gym
package and required dependenciesActivate the virtual environment:
source nb-env/bin/activate
Run the following in a python shell to confirm that the script was successful:
import torch
import ng_model_gym
print("Torch version:", torch.__version__)
print("Model Gym version:", ng_model_gym.__version__)
You’ve completed your environment setup - great work! You’re now ready to start walking through the training and evaluation steps.