Code for a hand
sudo vim /etc/systemd/system/docker-l4t-ml.service
Paste this text
[Unit]
Description=Autostart l4t-ml Docker container
Requires=docker.service
After=docker.service
[Service]
Restart=on-failure
ExecStart=/usr/bin/docker run --runtime nvidia --name l4t-ml-container --network host --volume /home/felg/l4t-data --device /dev/video0 nvcr.io/nvidia/l4t-ml:r32.7.1-py3
ExecStop=/usr/bin/docker stop l4t-ml-container
[Install]
WantedBy=multi-user.target
Then press ESC
then type ':wq'
-
Reload
systemd
:sudo systemctl daemon-reload
-
Enable the service to start on boot:
sudo systemctl enable docker-l4t-ml.service
-
Optionally, start the service immediately without rebooting:
sudo systemctl start docker-l4t-ml.service
-
Check the service status to ensure it's running properly:
sudo systemctl status docker-l4t-ml.service
After Jupyter Notebook is running, open a terminal and run the following commands:
git clone https://github.com/NVIDIA-AI-IOT/torch2trt
cd torch2trt
python3 setup.py install --plugins
pip3 install tqdm cython pycocotools
apt-get install python3-matplotlib
cd /
git clone https://github.com/NVIDIA-AI-IOT/trt_pose
cd trt_pose
python3 setup.py install
cd /
git clone https://github.com/NVIDIA-AI-IOT/jetcam
cd jetcam
python3 setup.py install
cd /
cd trt_pose
python3 setup.py install