NVIDIA
NVIDIA
CenterPose
Model
NVIDIA
NVIDIA
CenterPose

3 pose detection model for retail objects.

CenterPose Model Card

Model Overview

CenterPose is a single-stage, keypoint-based method for category-level object pose estimation. It processes unknown object instances within a recognized category using a single RGB image. The pretrained model detects the projections of 3D keypoints, estimates a 6-DoF pose, and regresses the relative 3D bounding cuboid dimensions.

Model Architecture

This model supports two different types of backbone networks as the feature extractor, including DLA34 and FAN-Small-Hybrid. The DLA34 is a standard Convolutional Neural Network (CNN) backbone, while the FAN-Small-Hybrid is a transformer-based classification backbone.

The network architecture processes a re-scaled and padded RGB image. Using the DLA34/FAN-Small-Hybrid feature extractor combined with an upsampling module, the network outputs distinct heads that predict the projections of 3D bounding box keypoints and relative cuboid dimensions. After detecting objects in the image space, the estimated relative cuboid dimensions enables you to utilize robust, off-the-shelf PnP algorithms for the pose estimation.

Training

This model uses a single-stage network to make all predictions and is trained using the CenterPose entry point since the TAO 5.2 version. The training algorithm optimizes the network to minimize both the focal loss and the l1 loss for all keypoints and cuboid dimensions.

Training Data

The CenterPose model was trained on the Objectron dataset, a newly introduced benchmark for monocular RGB category-level 6-DoF object pose estimation. This dataset is comprised of 15k annotated video clips, totaling over 4M annotated frames. Every category is marked with a 3D bounding cuboid that indicates the object's position, orientation relative to the camera, and the cuboid's dimensions.

Objects are from the following eight categories: bikes, books, bottles, cameras, cereal boxes, chairs, laptops, and shoes.

For training purposes, frames are extracted by temporally downsampling the original videos to 15 fps. For symmetric objects, such as bottles, multiple ground truth labels are produced during the training phase by rotating them N times around their symmetry axis.

Category# of Training Videos# of Training Images# of Testing Videos# of Testing Images
Bike3758,396942,090
Book1,61831,6094047,885
Bottle1,54226,0903856,442
Camera65212,7581633,283
Cereal Box1,28822,0243215,428
Chair1,55527,6083886,695
Laptop1,17926,4622946,608
Shoe1,69330,5154237,859

Accuracy and Performance

Evaluation Data

The performance of the CenterPose model during inference was evaluated using the test samples from each category in the official dataset release. These frames, originally high-resolution images of 600x800 pixels, were resized to 512x512 pixels before being processed by the CenterPose model.

Methodology and KPI

Accuracy was determined using a 3D intersection-over-union (IoU) criterion with a threshold greater than 0.5. The 2D MPE (mean pixel projection error) metric calculates the average normalized distance between the projections of 3D bounding box keypoints from both the estimated and ground truth poses. For viewpoint estimation, the average precision (AP) is presented for azimuth and elevation with thresholds of 15° and 10° degrees, respectively.

For symmetric object categories, like bottles, the estimated bounding box is rotated around the symmetry axis N times (where N = 100) and assessed the prediction in relation to each rotated instance. The results reflect the instance that either maximizes the 3D IoU or minimizes the 2D pixel projection error.

For evaluation purposes, frames are exctacted by temporally downsampling the original videos to 15 fps. Evaluation data key performance indicators (KPIs) are provided in the following table. The evaluation of the pretrained models was based on FP32 precision.

CategoryBackbone Architecture3D IoU ↑2D MPE ↓AP @ 15° Azimuth Error ↑AP @ 10° Elevation Error ↑
BikeDLA340.62710.09410.86670.8990
BookDLA340.56780.06370.73800.8503
BottleDLA340.79390.04020.97030.8933
CameraDLA340.72130.05740.80580.8402
Cereal BoxDLA340.81310.03920.92730.9350
ChairDLA340.84950.06100.87870.8954
LaptopDLA340.73980.04750.87510.7871
ShoeDLA340.67110.04450.68380.7915
BikeFAN-Small-Hybrid0.64890.08850.89740.9418
BookFAN-Small-Hybrid0.62860.05970.78690.8835
BottleFAN-Small-Hybrid0.81870.03960.98200.9056
CameraFAN-Small-Hybrid0.73840.05810.83600.8662
Cereal BoxFAN-Small-Hybrid0.82900.03650.94180.9514
ChairFAN-Small-Hybrid0.85520.05870.88930.9153
LaptopFAN-Small-Hybrid0.70030.04770.89170.7714
ShoeFAN-Small-Hybrid0.69020.04420.71880.8276

Real-Time Inference Performance

The inference performance of the provided CenterPose model is evaluated at FP16 and FP32 precisions. The model's input resolution is 512x512 pixels. The performance assessment was conducted using trtexec on a range of devices including: Orin Nano 8GB, Orin NX 16GB, Jetson AGX Orin 64GB, A2, A30, A100, H100, L4, L40, and Tesla T4. In the table, "BS" stands for "batch size."

The performance data presented pertains solely to model inference. The end-to-end performance, when integrated with streaming video data and the post-processing, might vary slightly due to potential bottlenecks in hardware and software.

Models (FP16)DevicesLatency ↓ (ms, BS=1)Images per Second ↑ (BS=1)Latency ↓ (ms, BS=8)Images per Second ↑ (BS=8)
CenterPose - DLA34Orin Nano 8GB52.1919.16167.85 (BS=4)23.83 (BS=4)
CenterPose - DLA34Orin NX 16GB36.0527.74115.91 (BS=4)34.51 (BS=4)
CenterPose - DLA34AGX Orin 64GB17.5357.0489.2889.60
CenterPose - DLA34A263.7515.69121.5965.79
CenterPose - DLA34A3017.4057.4628.39281.76
CenterPose - DLA34A10012.1782.1617.38460.24
CenterPose - DLA34H1009.45105.8412.23654.23
CenterPose - DLA34L424.5840.6847.44168.62
CenterPose - DLA34L409.37106.7016.65480.62
CenterPose - DLA34Tesla T441.2024.2775.96105.32
CenterPose - FAN-Small-HybridOrin Nano 8GB125.947.94482.63 (BS=4)8.29 (BS=4)
CenterPose - FAN-Small-HybridOrin NX 16GB88.1211.35333.54 (BS=4)11.99 (BS=4)
CenterPose - FAN-Small-HybridAGX Orin 64GB35.6828.03262.8030.44
CenterPose - FAN-Small-HybridA2172.555.80315.3525.37
CenterPose - FAN-Small-HybridA3037.4126.7363.66125.66
CenterPose - FAN-Small-HybridA10020.0149.9932.30247.64
CenterPose - FAN-Small-HybridH10013.1176.2619.48410.74
CenterPose - FAN-Small-HybridL453.5218.69111.7071.62
CenterPose - FAN-Small-HybridL4017.6556.6536.43219.60
CenterPose - FAN-Small-HybridTesla T4102.339.77187.6342.64
Models (FP32)DevicesLatency ↓ (ms, BS=1)Images per Second ↑ (BS=1)Latency ↓ (ms, BS=8)Images per Second ↑ (BS=8)
CenterPose - DLA34Orin Nano 8GB80.8112.37277.50 (BS=4)14.41 (BS=4)
CenterPose - DLA34Orin NX 16GB55.6717.96192.77 (BS=4)20.75 (BS=4)
CenterPose - DLA34AGX Orin 64GB25.3639.44150.9852.99
CenterPose - DLA34A2155.436.43307.1126.05
CenterPose - DLA34A3040.8324.4974.51107.37
CenterPose - DLA34A10025.1739.7441.79191.44
CenterPose - DLA34H10016.2861.4225.00320.03
CenterPose - DLA34L449.9920.0097.3882.15
CenterPose - DLA34L4018.6453.6333.47239.01
CenterPose - DLA34Tesla T4101.429.86188.2342.50
CenterPose - FAN-Small-HybridOrin Nano 8GB208.254.80832.21 (BS=4)4.81 (BS=4)
CenterPose - FAN-Small-HybridOrin NX 16GB144.806.91572.54 (BS=4)6.99 (BS=4)
CenterPose - FAN-Small-HybridAGX Orin 64GB60.2916.59494.8616.17
CenterPose - FAN-Small-HybridA2450.282.22872.879.17
CenterPose - FAN-Small-HybridA30113.688.80215.1237.19
CenterPose - FAN-Small-HybridA10058.6217.06109.1373.31
CenterPose - FAN-Small-HybridH10030.9032.3654.41147.02
CenterPose - FAN-Small-HybridL4149.666.68309.3225.86
CenterPose - FAN-Small-HybridL4053.0218.86108.9173.46
CenterPose - FAN-Small-HybridTesla T4294.143.40579.5713.80

How to Use This Model

These models are designed for use with NVIDIA hardware and software. For hardware, the models are compatible with any NVIDIA GPU, including NVIDIA Jetson devices. For software, the models are specifically designed for the Train Adapt Optimize (TAO) Toolkit, or TensorRT.

The primary application of these models is to estimate an object's pose from a single RGB image. They can identify the objects in photos, given the right image decoding and pre-processing procedures.

For training, the models are intended for use with the Train Adapt Optimize (TAO) Toolkit and the your dataset. It's possible to train high-fidelity models tailored to new use cases. The Jupyter Notebook, which is included in the TAO Container, can be used for re-training.

Furthermore, these models are designed for deployment to edge devices using the TensorRT. TAO Triton apps offers capabilities to construct efficient image analytic pipelines. These pipelines can capture, decode, and pre-process data before executing inference.

Input

RGB Image of dimensions: 512 X 512 X 3 (W x H x C). Channel Ordering of the Input: NCHW, where N = Batch Size, C = number of channels (3), H = Height of images (512), W = Width of the images (512)

Output

The model outputs three distinct results that predict the projections of 3D bounding box keypoints, the cuboid relative dimensions, and the 6-DoF (Degrees of Freedom). The +y is up (aligned with the gravity, green line); The +x follows right hand rule (red line); The +z is the front face (blue line).

Output Image

BikeBookBottleCamera
Cereal BoxChairLaptopShoes

Instructions to Deploy the Model with TAO-Deploy

To use these models for object pose estimation, see the following YAML as a template for the dataset and inference sections of the experiment spec file when testing the images.

  • Convert the pretrained ONNX models into a TRT engine using TensorRT.
  • Set up the engine file path and configure the correct intrinsic matrix in the experiment spec file.
  • Run the TAO-Deploy inference pipeline to get the visualization results.
  • Note: The CenterPose model with FAN-Small-Hybrid only supports the FP16 when the TensorRT version >= 8.6.

For more information on the experiment spec file and usage instruction, see the TAO Toolkit User Guide.

dataset:
  inference_data: /path/to/inference/images/folder
  num_classes: 1
  batch_size: 1
  workers: 4

inference:
  trt_engine: /path/to/engine.trt
  visualization_threshold: 0.3
  principle_point_x: 298.3
  principle_point_y: 392.1
  focal_length_x: 651.2
  focal_length_y: 651.2
  skew: 0.0
  axis_size: 0.5
  use_pnp: True
  save_json: True
  save_visualization: True
  opencv: True

Instructions to Deploy the Model with Triton Inference Server

To create the entire end-to-end inference application, deploy this model with Triton Inference Server. NVIDIA Triton Inference Server is an open-source inference serving software that helps standardize model deployment and execution and delivers fast and scalable AI in production. Triton supports direct integration of this model into the server and inference from a client.

To deploy this model with Triton Inference Server and end-to-end inference from images, please refer to the TAO Triton apps.

Limitations

Very Small Objects

The CenterPose model was trained to identify dominant objects in the camera view. As a result, it might not detect objects that appear very small with respect to the camera view.

Occluded Objects

If objects are occluded or truncated to the extent that less than 40% of the object remains visible, the CenterPose model might not recognize them. The model can detect partially occluded objects as long as the majority of the object remains visible. Heavily occluded objects might compromise detection accuracy.

Dark-Lighting, Distortion Images, Blurry Images

The CenterPose model was trained on RGB images taken under good lighting conditions and captured by a pinhole camera. Consequently, images shot in poor lighting or those exhibiting distortion or blur might not yield optimal detection results.

Model Versions

References

Citations

  • Yunzhi Lin, Jonathan Tremblay, Stephen Tyree, Patricio Vela, and Stan Birchfield. "Single-Stage Keypoint-based Category-level Object Pose Estimation from an RGB Image." IEEE International Conference on Robotics and Automation (ICRA). 2022.

  • Daquan Zhou, Zhiding Yu, Enze Xie, Chaowei Xiao, Anima Anandkumar, Jiashi Feng and Jose M. Alvarez. "Understanding The Robustness in Vision Transformers". International Conference on Machine Learning (ICML). 2022.

  • Fisher Yu, Dequan Wang, Evan Shelhamer and Trevor Darrell. "Deep Layer Aggregation". Conference on Computer Vision and Pattern Recognition. 2018.

  • Adel Ahmadyan, Liangkai Zhang, Artsiom Ablavatski, Jianing Wei, Matthias Grundmann. "Objectron: A Large Scale Dataset of Object-Centric Videos in the Wild with Pose Annotations". IEEE Conference on Computer Vision and Pattern Recognition. 2021.

Technical Blogs

Suggested Reading

License

License to use these models is covered by the NVIDIA Open Model License. By downloading the model, you accept the terms and conditions of these licenses.

Ethical Considerations

NVIDIA CenterPose model estimates the object pose. However, no additional information such as people and other distractors in the background are inferred. The training and evaluation dataset mostly consists of North American content. An ideal training and evaluation dataset would additionally include content from other geographies. NVIDIA’s platforms and application frameworks enable developers to build a wide array of AI applications. Consider potential algorithmic bias when choosing or creating the models being deployed. Work with the model’s developer to ensure that it meets the requirements for the relevant industry and use case; that the necessary instruction and documentation are provided to understand error rates, confidence intervals, and results; and that the model is being used under the conditions and in the manner intended.

Publisher
NVIDIA
NVIDIA
Latest Versiontrainable_fan_small
UpdatedNovember 12, 2024 UTC
Compressed Size327.96 MB

NVIDIA uses cookies to improve your experience on our web site. We and our third-party partners also use cookies and other tools to collect and record information you provide as well as information about your interactions with our websites for performance improvement, analytics, and to assist in marketing efforts. By clicking "Accept All", you consent to our use of cookies and other tools as described in our Cookie Policy. You can manage your cookie settings by clicking on "Manage Settings." By continuing to use this site or by clicking one of the buttons below, you agree to our Terms of Service (which contains important waivers). Please see our Privacy Policy for more information on our privacy practices.