# jetson-inference
**Repository Path**: jokewayne/jetson-inference
## Basic Information
- **Project Name**: jetson-inference
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2021-02-19
- **Last Updated**: 2024-05-31
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Deploying Deep Learning
Welcome to our training guide for inference and [deep vision](https://rawgit.com/dusty-nv/jetson-inference/master/docs/html/index.html) runtime library for NVIDIA **[DIGITS](https://github.com/NVIDIA/DIGITS)** and **[Jetson Xavier/TX1/TX2](http://www.nvidia.com/object/embedded-systems.html)**.
This repo uses NVIDIA **[TensorRT](https://developer.nvidia.com/tensorrt)** for efficiently deploying neural networks onto the embedded platform, improving performance and power efficiency using graph optimizations, kernel fusion, and half-precision FP16 on the Jetson.
Vision primitives, such as [`imageNet`](imageNet.h) for image recognition, [`detectNet`](detectNet.h) for object localization, and [`segNet`](segNet.h) for semantic segmentation, inherit from the shared [`tensorNet`](tensorNet.h) object. Examples are provided for streaming from live camera feed and processing images from disk. See the **[Deep Vision API Reference Specification](https://rawgit.com/dusty-nv/jetson-inference/master/docs/html/index.html)** for accompanying documentation.
There are multiple tracks of the tutorial that you can choose to follow, including Training + Inference or Inference-Only.
> > Jetson Nano Developer Kit and JetPack 4.2 is now supported in the repo.
> > See our technical blog including benchmarks, [`Jetson Nano Brings AI Computing to Everyone`](https://devblogs.nvidia.com/jetson-nano-ai-computing/).
## Hello AI World (Inference Only)
If you would like to only do the inference portion of the tutorial, which can be run on your Jetson in roughly two hours, these modules are available below:
* [Setting up Jetson with JetPack](docs/jetpack-setup-2.md)
* [Building the Repo from Source](docs/building-repo-2.md)
* [Classifying Images with ImageNet](docs/imagenet-console-2.md)
* [Using the Console Program on Jetson](docs/imagenet-console-2.md#using-the-console-program-on-jetson)
* [Coding Your Own Image Recognition Program](docs/imagenet-example-2.md)
* [Running the Live Camera Recognition Demo](docs/imagenet-camera-2.md)
* [Locating Object Coordinates using DetectNet](docs/detectnet-console-2.md)
* [Detecting Objects from the Command Line](docs/detectnet-console-2.md#detecting-objects-from-the-command-line)
* [Running the Live Camera Detection Demo](docs/detectnet-camera-2.md)
## Two Days to a Demo (Training + Inference)
The full tutorial includes training and inference, and can take roughly two days or more depending on system setup, downloading the datasets, and the training speed of your GPU.
* [DIGITS Workflow](docs/digits-workflow.md)
* [DIGITS System Setup](docs/digits-setup.md)
* [Setting up Jetson with JetPack](docs/jetpack-setup.md)
* [Building the Repo from Source](docs/building-repo.md)
* [Classifying Images with ImageNet](docs/imagenet-console.md)
* [Using the Console Program on Jetson](docs/imagenet-console.md#using-the-console-program-on-jetson)
* [Coding Your Own Image Recognition Program](docs/imagenet-example.md)
* [Running the Live Camera Recognition Demo](docs/imagenet-camera.md)
* [Re-Training the Network with DIGITS](docs/imagenet-training.md)
* [Downloading Image Recognition Dataset](docs/imagenet-training.md#downloading-image-recognition-dataset)
* [Customizing the Object Classes](docs/imagenet-training.md#customizing-the-object-classes)
* [Importing Classification Dataset into DIGITS](docs/imagenet-training.md#importing-classification-dataset-into-digits)
* [Creating Image Classification Model with DIGITS](docs/imagenet-training.md#creating-image-classification-model-with-digits)
* [Testing Classification Model in DIGITS](docs/imagenet-training.md#testing-classification-model-in-digits)
* [Downloading Model Snapshot to Jetson](docs/imagenet-snapshot.md)
* [Loading Custom Models on Jetson](docs/imagenet-custom.md)
* [Locating Object Coordinates using DetectNet](docs/detectnet-training.md)
* [Detection Data Formatting in DIGITS](docs/detectnet-training.md#detection-data-formatting-in-digits)
* [Downloading the Detection Dataset](docs/detectnet-training.md#downloading-the-detection-dataset)
* [Importing the Detection Dataset into DIGITS](docs/detectnet-training.md#importing-the-detection-dataset-into-digits)
* [Creating DetectNet Model with DIGITS](docs/detectnet-training.md#creating-detectnet-model-with-digits)
* [Testing DetectNet Model Inference in DIGITS](docs/detectnet-training.md#testing-detectnet-model-inference-in-digits)
* [Downloading the Detection Model to Jetson](docs/detectnet-snapshot.md)
* [DetectNet Patches for TensorRT](docs/detectnet-snapshot.md#detectnet-patches-for-tensorrt)
* [Detecting Objects from the Command Line](docs/detectnet-console.md)
* [Multi-class Object Detection Models](docs/detectnet-console.md#multi-class-object-detection-models)
* [Running the Live Camera Detection Demo on Jetson](docs/detectnet-camera.md)
* [Semantic Segmentation with SegNet](docs/segnet-dataset.md)
* [Downloading Aerial Drone Dataset](docs/segnet-dataset.md#downloading-aerial-drone-dataset)
* [Importing the Aerial Dataset into DIGITS](docs/segnet-dataset.md#importing-the-aerial-dataset-into-digits)
* [Generating Pretrained FCN-Alexnet](docs/segnet-pretrained.md)
* [Training FCN-Alexnet with DIGITS](docs/segnet-training.md)
* [Testing Inference Model in DIGITS](docs/segnet-training.md#testing-inference-model-in-digits)
* [FCN-Alexnet Patches for TensorRT](docs/segnet-patches.md)
* [Running Segmentation Models on Jetson](docs/segnet-console.md)
## Extra Resources
In this area, links and resources for deep learning developers are listed:
* [Appendix](docs/aux-contents.md)
* [ros_deep_learning](http://www.github.com/dusty-nv/ros_deep_learning) - TensorRT inference ROS nodes
* [NVIDIA AI IoT](https://github.com/NVIDIA-AI-IOT) - NVIDIA Jetson GitHub repositories
* [Jetson eLinux Wiki](https://www.eLinux.org/Jetson) - Jetson eLinux Wiki
## Recommended System Requirements
Training GPU: Maxwell, Pascal, Volta, or Turing-based GPU (ideally with at least 6GB video memory)
optionally, AWS P2/P3 instance or Microsoft Azure N-series
Ubuntu 14.04 x86_64 or Ubuntu 16.04 x86_64.
Deployment: Jetson Xavier Developer Kit with JetPack 4.0 or newer (Ubuntu 18.04 aarch64).
Jetson TX2 Developer Kit with JetPack 3.0 or newer (Ubuntu 16.04 aarch64).
Jetson TX1 Developer Kit with JetPack 2.3 or newer (Ubuntu 16.04 aarch64).
> **note**: this [branch](http://github.com/dusty-nv/jetson-inference) is verified against the following BSP versions for Jetson AGX Xavier and Jetson TX1/TX2:
> > Jetson Nano - JetPack 4.2 / L4T R32.1 aarch64 (Ubuntu 18.04 LTS) inc. TensorRT 5.0
> > Jetson AGX Xavier - JetPack 4.2 / L4T R32.1 aarch64 (Ubuntu 18.04 LTS) inc. TensorRT 5.0
> > Jetson AGX Xavier - JetPack 4.1.1 DP / L4T R31.1 aarch64 (Ubuntu 18.04 LTS) inc. TensorRT 5.0 GA
> > Jetson AGX Xavier - JetPack 4.1 DP EA / L4T R31.0.2 aarch64 (Ubuntu 18.04 LTS) inc. TensorRT 5.0 RC
> > Jetson AGX Xavier - JetPack 4.0 DP EA / L4T R31.0.1 aarch64 (Ubuntu 18.04 LTS) inc. TensorRT 5.0 RC
> > Jetson TX2 - JetPack 4.2 / L4T R32.1 aarch64 (Ubuntu 18.04 LTS) inc. TensorRT 5.0
> > Jetson TX2 - JetPack 3.3 / L4T R28.2.1 aarch64 (Ubuntu 16.04 LTS) inc. TensorRT 4.0
> > Jetson TX1 - JetPack 3.3 / L4T R28.2 aarch64 (Ubuntu 16.04 LTS) inc. TensorRT 4.0
> > Jetson TX2 - JetPack 3.2 / L4T R28.2 aarch64 (Ubuntu 16.04 LTS) inc. TensorRT 3.0
> > Jetson TX2 - JetPack 3.1 / L4T R28.1 aarch64 (Ubuntu 16.04 LTS) inc. TensorRT 3.0 RC
> > Jetson TX1 - JetPack 3.1 / L4T R28.1 aarch64 (Ubuntu 16.04 LTS) inc. TensorRT 3.0 RC
> > Jetson TX2 - JetPack 3.1 / L4T R28.1 aarch64 (Ubuntu 16.04 LTS) inc. TensorRT 2.1
> > Jetson TX1 - JetPack 3.1 / L4T R28.1 aarch64 (Ubuntu 16.04 LTS) inc. TensorRT 2.1
> > Jetson TX2 - JetPack 3.0 / L4T R27.1 aarch64 (Ubuntu 16.04 LTS) inc. TensorRT 1.0
> > Jetson TX1 - JetPack 2.3 / L4T R24.2 aarch64 (Ubuntu 16.04 LTS) inc. TensorRT 1.0
> > Jetson TX1 - JetPack 2.3.1 / L4T R24.2.1 aarch64 (Ubuntu 16.04 LTS)
Note that TensorRT samples from the repo are intended for deployment onboard Jetson, however when cuDNN and TensorRT have been installed on the host side, the TensorRT samples in the repo can be compiled for PC.
## Legacy Links
Since the documentation has been re-organized, below are links mapping the previous content to the new locations.
(click on the arrow above to hide this section)
### DIGITS Workflow
See [DIGITS Workflow](docs/digits-workflow.md)
### System Setup
See [DIGITS Setup](docs/digits-setup.md)
#### Running JetPack on the Host
See [JetPack Setup](docs/jetpack-setup.md)
#### Installing Ubuntu on the Host
See [DIGITS Setup](docs/digits-setup.md#installing-ubuntu-on-the-host)
#### Setting up host training PC with NGC container
See [DIGITS Setup](docs/digits-setup.md#setting-up-host-training-pc-with-ngc-container)
#### Installing the NVIDIA driver
See [DIGITS Setup](docs/digits-setup.md#installing-the-nvidia-driver)
#### Installing Docker
See [DIGITS Setup](docs/digits-setup.md#installing-docker)
#### NGC Sign-up
See [DIGITS Setup](docs/digits-setup.md#ngc-sign-up)
#### Setting up data and job directories
See [DIGITS Setup](docs/digits-setup.md#setting-up-data-and-job-directories)
#### Starting DIGITS container
See [DIGITS Setup](docs/digits-setup.md#starting-digits-container)
#### Natively setting up DIGITS on the Host
See [DIGITS Native Setup](docs/digits-native.md)
#### Installing NVIDIA Driver on the Host
See [DIGITS Native Setup](docs/digits-native.md#installing-nvidia-driver-on-the-host)
#### Installing cuDNN on the Host
See [DIGITS Native Setup](docs/digits-native.md#installing-cudnn-on-the-host)
#### Installing NVcaffe on the Host
See [DIGITS Native Setup](docs/digits-native.md#installing-nvcaffe-on-the-host)
#### Installing DIGITS on the Host
See [DIGITS Native Setup](docs/digits-native.md#installing-digits-on-the-host)
#### Starting the DIGITS Server
See [DIGITS Native Setup](docs/digits-native.md#starting-the-digits-server)
### Building from Source on Jetson
See [Building the Repo from Source](docs/building-repo.md)
#### Cloning the Repo
See [Building the Repo from Source](docs/building-repo.md#cloning-the-repo)
#### Configuring with CMake
See [Building the Repo from Source](docs/building-repo.md#configuring-with-cmake)
#### Compiling the Project
See [Building the Repo from Source](docs/building-repo.md#compiling-the-project)
#### Digging Into the Code
See [Building the Repo from Source](docs/building-repo.md#digging-into-the-code)
### Classifying Images with ImageNet
See [Classifying Images with ImageNet](docs/imagenet-console.md)
#### Using the Console Program on Jetson
See [Classifying Images with ImageNet](docs/imagenet-console.md#using-the-console-program-on-jetson)
### Running the Live Camera Recognition Demo
See [Running the Live Camera Recognition Demo](docs/imagenet-camera.md)
### Re-training the Network with DIGITS
See [Re-Training the Recognition Network](docs/imagenet-training.md)
#### Downloading Image Recognition Dataset
See [Re-Training the Recognition Network](docs/imagenet-training.md#downloading-image-recognition-dataset)
#### Customizing the Object Classes
See [Re-Training the Recognition Network](docs/imagenet-training.md#customizing-the-object-classes)
#### Importing Classification Dataset into DIGITS
See [Re-Training the Recognition Network](docs/imagenet-training.md#importing-classification-dataset-into-digits)
#### Creating Image Classification Model with DIGITS
See [Re-Training the Recognition Network](docs/imagenet-training.md#creating-image-classification-model-with-digits)
#### Testing Classification Model in DIGITS
See [Re-Training the Recognition Network](docs/imagenet-training.md#testing-classification-model-in-digits)
#### Downloading Model Snapshot to Jetson
See [Downloading Model Snapshots to Jetson](docs/imagenet-snapshot.md)
### Loading Custom Models on Jetson
See [Loading Custom Models on Jetson](docs/imagenet-custom.md)
### Locating Object Coordinates using DetectNet
See [Locating Object Coordinates using DetectNet](docs/detectnet-training.md)
#### Detection Data Formatting in DIGITS
See [Locating Object Coordinates using DetectNet](docs/detectnet-training.md#detection-data-formatting-in-digits)
#### Downloading the Detection Dataset
See [Locating Object Coordinates using DetectNet](docs/detectnet-training.md#downloading-the-detection-dataset)
#### Importing the Detection Dataset into DIGITS
See [Locating Object Coordinates using DetectNet](docs/detectnet-training.md#importing-the-detection-dataset-into-digits)
#### Creating DetectNet Model with DIGITS
See [Locating Object Coordinates using DetectNet](docs/detectnet-training.md#creating-detectnet-model-with-digits)
#### Selecting DetectNet Batch Size
See [Locating Object Coordinates using DetectNet](docs/detectnet-training.md#selecting-detectnet-batch-size)
#### Specifying the DetectNet Prototxt
See [Locating Object Coordinates using DetectNet](docs/detectnet-training.md#specifying-the-detectnet-prototxt)
#### Training the Model with Pretrained Googlenet
See [Locating Object Coordinates using DetectNet](docs/detectnet-training.md#training-the-model-with-pretrained-googlenet)
#### Testing DetectNet Model Inference in DIGITS
See [Locating Object Coordinates using DetectNet](docs/detectnet-training.md#testing-detectnet-model-inference-in-digits)
#### Downloading the Model Snapshot to Jetson
See [Downloading the Detection Model to Jetson](docs/detectnet-snapshot.md)
#### DetectNet Patches for TensorRT
See [Downloading the Detection Model to Jetson](docs/detectnet-snapshot.md#detectnet-patches-for-tensorrt)
### Processing Images from the Command Line on Jetson
See [Detecting Objects from the Command Line](docs/detectnet-console.md)
#### Launching With a Pretrained Model
See [Detecting Objects from the Command Line](docs/detectnet-console.md#launching-with-a-pretrained-model)
#### Pretrained DetectNet Models Available
See [Detecting Objects from the Command Line](docs/detectnet-console.md#pretrained-detectnet-models-available)
#### Running Other MS-COCO Models on Jetson
See [Detecting Objects from the Command Line](docs/detectnet-console.md#running-other-ms-coco-models-on-jetson)
#### Running Pedestrian Models on Jetson
See [Detecting Objects from the Command Line](docs/detectnet-console.md#running-pedestrian-models-on-jetson)
#### Multi-class Object Detection Models
See [Detecting Objects from the Command Line](docs/detectnet-console.md#multi-class-object-detection-models)
### Running the Live Camera Detection Demo on Jetson
See [Running the Live Camera Detection Demo](docs/detectnet-camera.md)
### Image Segmentation with SegNet
See [Semantic Segmentation with SegNet](docs/segnet-dataset.md)
#### Downloading Aerial Drone Dataset
See [Semantic Segmentation with SegNet](docs/segnet-dataset.md#downloading-aerial-drone-dataset)
#### Importing the Aerial Dataset into DIGITS
See [Semantic Segmentation with SegNet](docs/segnet-dataset.md#importing-the-aerial-dataset-into-digits)
#### Generating Pretrained FCN-Alexnet
See [Generating Pretrained FCN-Alexnet](docs/segnet-pretrained.md)
### Training FCN-Alexnet with DIGITS
See [Training FCN-Alexnet with DIGITS](docs/segnet-training.md)
#### Testing Inference Model in DIGITS
See [Training FCN-Alexnet with DIGITS](docs/segnet-training.md#testing-inference-model-in-digits)
#### FCN-Alexnet Patches for TensorRT
See [FCN-Alexnet Patches for TensorRT](docs/segnet-patches.md)
### Running Segmentation Models on Jetson
See [Running Segmentation Models on Jetson](docs/segnet-console.md)
© 2016-2019 NVIDIA | Table of Contents