forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (26 loc) · 951 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#---
# name: nanoowl
# group: vit
# depends: [pytorch, torch2trt, transformers, opencv, gstreamer]
# requires: '>=34.1.0'
# test: test.sh
# docs: docs.md
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ARG NANOOWL_REPO=NVIDIA-AI-IOT/nanoowl \
NANOOWL_BRANCH=main
RUN pip3 install --verbose --no-cache-dir 'matplotlib<3.9' && \
pip3 install --verbose --no-cache-dir git+https://github.com/openai/CLIP.git && \
mkdir -p /root/.cache && \
ln -sf /data/models/clip /root/.cache/clip
ADD https://api.github.com/repos/${NANOOWL_REPO}/git/refs/heads/${NANOOWL_BRANCH} /tmp/nanoowl_version.json
RUN git clone --branch=${NANOOWL_BRANCH} https://github.com/${NANOOWL_REPO} /opt/nanoowl && \
cd /opt/nanoowl && \
git checkout main && \
python3 setup.py develop
RUN cd /opt/nanoowl && \
mkdir data && \
python3 -m nanoowl.build_image_encoder_engine \
data/owl_image_encoder_patch32.engine \
--onnx_opset=16