Install NanoOWL and build the image encoder engine
mainTo use NanoOWL on NVIDIA Jetson Orin platforms, follow these steps to install dependencies, the package itself, and build the required TensorRT engine for the OWL-ViT vision encoder.
1. Install Dependencies
Ensure you have installed:
- PyTorch
torch2trt- NVIDIA TensorRT
transformerslibrary viapython3 -m pip install transformers
2. Install NanoOWL
Clone the repository and install the package in development mode:
git clone https://github.com/NVIDIA-AI-IOT/nanoowl
cd nanoowl
python3 setup.py develop --user3. Build the TensorRT Engine
You must build the engine for the vision encoder before running predictions:
mkdir -p data
python3 -m nanoowl.build_image_encoder_engine data/owl_image_encoder_patch32.engine# Install dependencies
python3 -m pip install transformers
# Install NanoOWL
git clone https://github.com/NVIDIA-AI-IOT/nanoowl
cd nanoowl
python3 setup.py develop --user
# Build the engine
mkdir -p data
python3 -m nanoowl.build_image_encoder_engine data/owl_image_encoder_patch32.engine