diff --git a/docker/Dockerfile-jetson b/docker/Dockerfile-jetson index 530d87eaef..8c3743d1bc 100644 --- a/docker/Dockerfile-jetson +++ b/docker/Dockerfile-jetson @@ -28,8 +28,12 @@ ADD https://github.com/ultralytics/assets/releases/download/v8.2.0/yolov8n.pt /u # Remove opencv-python from Ultralytics dependencies as it conflicts with opencv-python installed in base image RUN grep -v "opencv-python" pyproject.toml > temp.toml && mv temp.toml pyproject.toml +# Download onnxruntime-gpu 1.15.1 for Jetson Linux 35.2.1 (JetPack 5.1). Other versions can be seen in https://elinux.org/Jetson_Zoo#ONNX_Runtime +RUN wget https://nvidia.box.com/shared/static/mvdcltm9ewdy2d5nurkiqorofz1s53ww.whl -O onnxruntime_gpu-1.15.1-cp38-cp38-linux_aarch64.whl + # Install pip packages manually for TensorRT compatibility https://github.com/NVIDIA/TensorRT/issues/2567 RUN python3 -m pip install --upgrade pip wheel +RUN pip install onnxruntime_gpu-1.15.1-cp38-cp38-linux_aarch64.whl RUN pip install --no-cache tqdm matplotlib pyyaml psutil pandas onnx RUN pip install --no-cache -e ".[export]" diff --git a/ultralytics/utils/checks.py b/ultralytics/utils/checks.py index ea9984acaa..65365ef450 100644 --- a/ultralytics/utils/checks.py +++ b/ultralytics/utils/checks.py @@ -419,7 +419,14 @@ def check_torchvision(): """ # Compatibility table - compatibility_table = {"2.0": ["0.15"], "1.13": ["0.14"], "1.12": ["0.13"]} + compatibility_table = { + "2.3": ["0.18"], + "2.2": ["0.17"], + "2.1": ["0.16"], + "2.0": ["0.15"], + "1.13": ["0.14"], + "1.12": ["0.13"], + } # Extract only the major and minor versions v_torch = ".".join(torch.__version__.split("+")[0].split(".")[:2])