Skip to main content
QUICK REVIEW

[Paper Review] Training of SSD(Single Shot Detector) for Facial Detection using Nvidia Jetson Nano

Saif Ur Rehman, Muhammad Rashid Razzaq|arXiv (Cornell University)|May 28, 2021
COVID-19 diagnosis using AIMedicine5 citations
TL;DR

This paper presents a lightweight facial detection system using SSD (Single Shot Detector) with MobileNetV2 backbone, trained on a 139-image dataset via PyTorch and deployed on NVIDIA Jetson Nano. The model achieved ~97% accuracy in under 2 hours of training, demonstrating fast, accurate inference on edge devices using TensorRT optimization for real-time performance.

ABSTRACT

In this project, we have used the computer vision algorithm SSD (Single Shot detector) computer vision algorithm and trained this algorithm from the dataset which consists of 139 Pictures. Images were labeled using Intel CVAT (Computer Vision Annotation Tool) We trained this model for facial detection. We have deployed our trained model and software in the Nvidia Jetson Nano Developer kit. Model code is written in Pytorch's deep learning framework. The programming language used is Python.

Motivation & Objective

  • To develop a real-time facial detection system suitable for edge deployment.
  • To train a lightweight SSD model on a small, custom dataset of 139 facial images.
  • To deploy and optimize the trained model on the resource-constrained NVIDIA Jetson Nano platform.
  • To evaluate inference performance and accuracy of the SSD model using PyTorch and TensorRT.
  • To demonstrate feasibility of real-world facial detection using minimal data and edge hardware.

Proposed method

  • Trained an SSD model with MobileNetV2 backbone using PyTorch on a custom dataset of 139 labeled facial images.
  • Used Intel CVAT for image annotation, with three classes (Saif, Hadi, Rashid) and a default background class.
  • Configured training with 5 epochs and 2 iterations per epoch, using a base learning rate of 0.01 for both the backbone and extra layers.
  • Optimized the inference pipeline using NVIDIA TensorRT to accelerate inference on the Jetson Nano.
  • Deployed the trained model in a Docker container on the Jetson Nano, interfacing with an A4Tech webcam for real-time video input.
  • Utilized a single forward pass for both object detection and classification, leveraging the multibox technique for multi-scale object prediction.

Experimental results

Research questions

  • RQ1Can a small, custom dataset of 139 images enable effective facial detection using SSD with MobileNetV2?
  • RQ2How well does SSD perform in terms of accuracy and inference speed when deployed on the Jetson Nano with TensorRT optimization?
  • RQ3What is the impact of hyperparameter settings (e.g., learning rate, epochs) on model convergence and performance in a low-data regime?
  • RQ4Can SSD achieve high accuracy with minimal training time on edge hardware like the Jetson Nano?
  • RQ5How effective is the integration of PyTorch, CVAT, and TensorRT for end-to-end facial detection on embedded systems?

Key findings

  • The trained SSD model achieved approximately 97% accuracy on the test set, demonstrating strong performance despite the small dataset size.
  • Training completed in approximately 2 hours using full computational performance on the Jetson Nano.
  • The model was successfully deployed and ran in real time using the A4Tech webcam, capturing 30fps video with low-latency inference.
  • The use of TensorRT significantly accelerated inference, enabling real-time performance on the GPU-accelerated Jetson Nano.
  • The SSD architecture with MobileNetV2 backbone proved effective for facial detection even with only 110 training images and 29 validation images.
  • The integration of CVAT for annotation and Docker for containerized deployment enabled a streamlined, reproducible pipeline for edge AI deployment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.