From bb4e863e875574626ef6e1bdbb9afcf488f63de4 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 30 Oct 2024 18:16:28 -0600 Subject: [PATCH] Fix jetson onnxruntime (#14698) * Fix jetson onnxruntime * Remove comment --- docker/tensorrt/Dockerfile.arm64 | 7 +++++-- docker/tensorrt/requirements-arm64.txt | 3 +-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docker/tensorrt/Dockerfile.arm64 b/docker/tensorrt/Dockerfile.arm64 index 286a0af55..23a2459ac 100644 --- a/docker/tensorrt/Dockerfile.arm64 +++ b/docker/tensorrt/Dockerfile.arm64 @@ -41,8 +41,11 @@ RUN --mount=type=bind,source=docker/tensorrt/detector/build_python_tensorrt.sh,t && TENSORRT_VER=$(cat /etc/TENSORRT_VER) /deps/build_python_tensorrt.sh COPY docker/tensorrt/requirements-arm64.txt /requirements-tensorrt.txt -RUN pip3 uninstall -y onnxruntime \ - && pip3 wheel --wheel-dir=/trt-wheels -r /requirements-tensorrt.txt +ADD https://nvidia.box.com/shared/static/9aemm4grzbbkfaesg5l7fplgjtmswhj8.whl /tmp/onnxruntime_gpu-1.15.1-cp39-cp39-linux_aarch64.whl + +RUN pip3 uninstall -y onnxruntime-openvino \ + && pip3 wheel --wheel-dir=/trt-wheels -r /requirements-tensorrt.txt \ + && pip3 install --no-deps /tmp/onnxruntime_gpu-1.15.1-cp39-cp39-linux_aarch64.whl FROM build-wheels AS trt-model-wheels ARG DEBIAN_FRONTEND diff --git a/docker/tensorrt/requirements-arm64.txt b/docker/tensorrt/requirements-arm64.txt index 93f100dd1..67489f80b 100644 --- a/docker/tensorrt/requirements-arm64.txt +++ b/docker/tensorrt/requirements-arm64.txt @@ -1,2 +1 @@ -cuda-python == 11.7; platform_machine == 'aarch64' -onnxruntime @ https://nvidia.box.com/shared/static/9aemm4grzbbkfaesg5l7fplgjtmswhj8.whl; platform_machine == 'aarch64' +cuda-python == 11.7; platform_machine == 'aarch64' \ No newline at end of file