Skip to content

Commit 2ce46f8

Browse files
committed
Pin tensor-native tracking packages
1 parent 500a3f2 commit 2ce46f8

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

docker/dockerfiles/Dockerfile.onnx.jetson.7.2.0

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ ARG PYTORCH_VERSION=2.10.0
7070
ARG TORCHVISION_VERSION=0.25.0
7171
ARG TRITON_VERSION=3.6.0
7272
ARG TRITON_WHEEL_SHA256=374f52c11a711fd062b4bfbb201fd9ac0a5febd28a96fb41b4a0f51dde3157f4
73+
ARG SUPERIORVISION_VERSION=0.30.0.dev2
74+
ARG TRACKTORS_VERSION=2.6.0.dev1
7375
ARG ONNXRUNTIME_VERSION=1.24.2
7476
ARG PYTORCH_MAX_JOBS=12
7577
ARG ORT_BUILD_PARALLEL=8
@@ -298,6 +300,8 @@ RUN python3 -m pip wheel --no-deps --wheel-dir /opt/wheels \
298300

299301
RUN echo "torch==${PYTORCH_VERSION}" > /tmp/overrides.txt && \
300302
echo "torchvision==${TORCHVISION_VERSION}" >> /tmp/overrides.txt && \
303+
echo "superiorvision==${SUPERIORVISION_VERSION}" >> /tmp/overrides.txt && \
304+
echo "tracktors==${TRACKTORS_VERSION}" >> /tmp/overrides.txt && \
301305
uv pip install --system --break-system-packages --index-strategy unsafe-best-match \
302306
--find-links /opt/wheels \
303307
--override /tmp/overrides.txt \
@@ -349,6 +353,8 @@ RUN cd /usr/local/lib/python3.12/dist-packages && \
349353

350354
RUN echo "torch==${PYTORCH_VERSION}" > /tmp/runtime-overrides.txt && \
351355
echo "torchvision==${TORCHVISION_VERSION}" >> /tmp/runtime-overrides.txt && \
356+
echo "superiorvision==${SUPERIORVISION_VERSION}" >> /tmp/runtime-overrides.txt && \
357+
echo "tracktors==${TRACKTORS_VERSION}" >> /tmp/runtime-overrides.txt && \
352358
uv pip install --target /opt/python-runtime \
353359
--index-strategy unsafe-best-match \
354360
--find-links /opt/wheels \

docker/scripts/verify_jetson_server_runtime.sh

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@ import flash_attn
7777
import importlib.metadata
7878
import importlib.util
7979
import onnxruntime
80+
import supervision
8081
import tensorrt
8182
import torch
8283
import torchvision
8384
import triton
85+
import trackers
8486
from torchvision import io as torchvision_io
8587
8688
arch_flags = set(torch._C._cuda_getArchFlags().split())
@@ -97,6 +99,18 @@ assert torchvision.__version__
9799
assert triton.__version__
98100
assert torchvision_io
99101
assert hasattr(torch.ops.image, "decode_jpegs_cuda")
102+
assert importlib.metadata.version("superiorvision") == "0.30.0.dev2"
103+
assert importlib.metadata.version("tracktors") == "2.6.0.dev1"
104+
assert supervision.__file__
105+
assert trackers.__file__
106+
assert cv2.__file__.startswith("/opt/opencv/python/"), cv2.__file__
107+
108+
for replaced_distribution in ("supervision", "trackers"):
109+
try:
110+
installed_version = importlib.metadata.version(replaced_distribution)
111+
except importlib.metadata.PackageNotFoundError:
112+
continue
113+
raise AssertionError((replaced_distribution, installed_version))
100114
101115
torch_requirements = importlib.metadata.requires("torch") or []
102116
assert not any(
@@ -108,7 +122,10 @@ pip_cuda_distributions = sorted(
108122
name
109123
for distribution in importlib.metadata.distributions()
110124
if (name := distribution.metadata.get("Name"))
111-
and name.lower().startswith("nvidia-")
125+
and (
126+
name.lower().startswith("nvidia-")
127+
or name.lower() in {"cuda-bindings", "cuda-toolkit"}
128+
)
112129
)
113130
assert not pip_cuda_distributions, pip_cuda_distributions
114131

0 commit comments

Comments
 (0)