Skip to the content.

Mood Balancer Project by Billy Gareth

head image

An environment container is used in the NVIDIA Deep Learning Institute course Getting Started with AI on Jetson Nano and should be run on an NVIDIA Jetson Nano. This project is an application of the Jetson AI Fundamentals and the Jetson AI Certification Program. I highly recommend you take the full free course, and check out other self-paced online courses and instructor-led workshops available from the NVIDIA Deep Learning Institute List of Quality Programs.

Prerequisites/Requirements for this project:

The following are required to run this container and successfully complete the project

How to Use the Container

If you’ve never used Docker, we recommend their Orientation and Setup.

Remember

Classes here are two in this task: the Engrossed and the Absent minded head image

Model Specifications

head image head image

Deep Learning Framework used:

head image

Putty and Windows PowerShell

Open Putty and specify the following:

Open Windows PowerShell:

start by ssh code: ssh username@192.168.55.1 head image

Set the Data Directory

The data collected during the course is stored in a mounted directory on the host device. This way, the data and trained models aren’t lost when the container shuts down. The commands below assume the mounted directory is ~/nvdli-data, so make sure you create it first:

mkdir ~/nvdli-data

Run the Container

Run the container using the container tag that corresponds to the version of JetPack-L4T that you have installed on your Jetson.

| JetPack Release        | Container Tag        | Language |-|-| - | 4.4 | v2.0.0-r32.4.3 | en-US | 4.4.1 | v2.0.1-r32.4.4 | en-US | 4.4.1 | v2.0.1-r32.4.4zh | zh-CN | 4.5 | v2.0.1-r32.5.0 | en-US | 4.5 | v2.0.1-r32.5.0zh | zh-CN | 4.6 | v2.0.1-r32.6.1 | en-US | 4.6 | v2.0.1-r32.6.1zh | zh-CN

The docker run command will automatically pull the container if it is not on your system already.

USB Camera option:
sudo docker run --runtime nvidia -it --rm --network host \
    --volume ~/nvdli-data:/nvdli-nano/data \
    --device /dev/video0 \ 
    nvcr.io/nvidia/dli/dli-nano-ai:v2.0.1-r32.6.1
CSI camera option:
sudo docker run --runtime nvidia -it --rm --network host \
    --volume ~/nvdli-data:/nvdli-nano/data \
    --volume /tmp/argus_socket:/tmp/argus_socket \
    --device /dev/video0 \ 
    nvcr.io/nvidia/dli/dli-nano-ai:v2.0.1-r32.6.1

note: if you have both CSI and USB cameras plugged in (or multiple USB cameras), also add --device /dev/video1 above. Then in the DLI notebooks, you will need to set the capture_device number to 1 (the CSI camera will be /dev/video0 and the USB camera will be /dev/video1 - don’t use the CSI camera through V4L2)

Options Explained:

Connect to JupyterLab

When the container is launched, the JupyterLab server will automatically start. Text similar to the following will be printed out to the user:

allow 10 sec for JupyterLab to start @ http://192.168.55.1:8888 (password dlinano)
JupterLab logging location:  /var/log/jupyter.log  (inside the container)
You can then navigate the browser on your PC to the URL shown above (http://192.168.55.1:8888) and login to JupyterLab with the password dlinano. Then proceed with the DLI course as normal.

run the script

./docker_dli_run.sh and then open your Jupyter Lab and execute the notebook

Note:

Technical Support

If you have any questions or need help, please visit the Jetson Developer Forums

License

Copyright 2020 NVIDIA

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Base Image Used for This Container

Also used in this container, and with its own licensing:

Software Installed on Top of Base Image

Also used in this container, and with its own licensing: