NVIDIA
NVIDIA
TAO Commercial Pretrained NV-CLIP Model
Model
NVIDIA
NVIDIA
TAO Commercial Pretrained NV-CLIP Model

TAO Commercial Pretrained NV-CLIP ViT-H Model

Subscribe to get accessSubscribe to the product below to access this premium content:
NVIDIA AI Enterprise
NVIDIA AI EnterpriseAccelerate your AI agent development
Subscribe Now
Note: You can gain access to hundreds more GPU-optimized artifacts by creating a free NGC account.
Already Subscribed?Log in

NVCLIP (Commercial Foundation Model)

Model Overview

NVCLIP is an NVIDIA version of the "Contrastive Language-Image Pre-Training (CLIP)" model that transforms an images into three dimensional (3D) textual embeddings. This model is ready for commercial/non-commercial use.

License/Terms of Use

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.

References:

  • Radford, Alec, et al. "Learning transferable visual models from natural language supervision." International conference on machine learning. PMLR, 2021.

Model Architecture:

Architecture Type: Transformer-Based

In TAO, you can use the NVCLIP in conjunction with TAO-MMclassification.

NVCLIP as a backbone can be used towards various downstream tasks such as classification, detection, segmentation and text based image retrieval.

Input:

Input Type(s): Images
Input Format(s): Red, Green, Blue (RGB)
Input Parameters: Three-Dimensional (3D)
Other Properties Related to Input:

  • Input image format: RGB Image of dimensions: 336 X 336 X 3 (H x W x C)

Channel Ordering of the Input: NCHW, where N = Batch Size, C = number of channels (3), H = Height of images (336), W = Width of the images (336)

Output:

Output Type(s): Embedding - Float tensor
Output Format: 3D Vector
Other Properties Related to Output:
The output of this model is an embedding of an input image of size 1024 for ViT-H variant and 768 for ViT-L.

Software Integration:

Runtime Engine(s):

  • TAO - 5.2

Supported Hardware Architecture(s):

  • NVIDIA Ampere
  • NVIDIA Jetson
  • NVIDIA Hopper
  • NVIDIA Lovelace
  • NVIDIA Pascal
  • NVIDIA Turing
  • NVIDIA Volta

Supported Operating System(s):

  • Linux
  • Linux 4 Tegra

Model Version(s):

  • nv_clip_336_vit_l_trainable_v1.0 - NVCLIP ViT-L with 336 resolution is foundation model and is trainable.
  • nv_clip_336_vit_h_trainable_v1.0 - NVCLIP ViT-H with 336 resolution is foundation model and is trainable.

Training & Evaluation:

This model can be used as a backbone and trained using the classification_pyt entrypoint in TAO. The training algorithm does a linear probe finetuning for classification task.

Using this Model

These models need to be used with NVIDIA hardware and software. For hardware, the models can run on any NVIDIA GPU including NVIDIA Jetson devices. These models can only be used with the Train Adapt Optimize (TAO) Toolkit, or TensorRT.

The primary use case for these models is getting feature embeddings from images. These embeddings can then be used for curation, clustering, zero-shot or few-shot downstream tasks such as classification. These embeddings can also be used towards text based image retrieval.

These models are intended for training and fine-tuning using the TAO Toolkit and your datasets for image comparison. High-fidelity models can be trained on new use cases. A Jupyter Notebook is available as a part of the TAO container and can be used to re-training.

The models are also intended for edge deployment using TensorRT.

Using the Model with TAO

To use these models as pretrained weights for transfer learning, use the following as a template for the model and train component of the experiment spec file to train a NVCLIP model. For more information on the experiment spec file, see the TAO Toolkit User Guide - NVCLIP.

model:
  backbone:
    type: "open_clip"
    custom_args:
      model_name: "ViT-L-14-SigLIP-CLIPA-336"
    freeze: true
  init_cfg:
    checkpoint: "Path to the checkpoint"

Training Dataset:

Data Collection Method by dataset:

  • Automated

Labeling Method by dataset:

  • Automated

Properties:

DatasetNo. of Images
NV Internal Data700M

Evaluation Dataset:

Link: https://www.image-net.org/

Data Collection Method by dataset:

  • Unknown

Labeling Method by dataset:

  • Unknown

Properties:
50,000 validatio images from ImageNet dataset

Methodology and KPI

The performance of zero shot accuracy of NVCLIP on ImageNet validation dataset.

modeltop-1 Accuracy
ViT-H-3360.7786
ViT-L-3360.7629

Inference:

Engine: Tensor(RT)
Test Hardware:

  • A2
  • A30
  • DGX H100
  • DGX A100
  • DGX H100
  • JAO 64GB
  • Jetson AGX Xavier
  • L4
  • L40
  • NVIDIA T4
  • Orin
  • Orin Nano 8GB
  • Orin NX
  • Orin NX16GB
  • T4
  • Xavier NX

The inference is run on the provided unpruned model at FP16 precision. The inference performance is run using trtexec on Jetson AGX Xavier, Xavier NX, Orin, Orin NX and NVIDIA T4, and Ampere GPUs. The Jetson devices are running at Max-N configuration for maximum GPU frequency. The performance shown here is the inference only performance. The end-to-end performance with streaming video data might vary depending on other bottlenecks in the hardware and software.

NVCLIP ViT-H

PlatformBSFPS
A212834.88
L4128107.80
A30128230.04
L40128286.69
A100128466.98
H100128782.47

Technical Blogs

Suggested Reading

Ethical Considerations:

NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse. For more detailed information on ethical considerations for this model, please see the Model Card++ Promise and the Explainability, Bias, Safety & Security, and Privacy Subcards.

Publisher
NVIDIA
NVIDIA
Latest Versionnv_clip_336_vit_h_trainable_v1.0
UpdatedOctober 2, 2024 UTC
Compressed Size1.54 GB

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.