ultralytics 8.3.249 Jetson AGX Thor and DGX Spark Docker (#23111)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Onuralp SEZER <onuralp@ultralytics.com>
This commit is contained in:
parent
ccab39d352
commit
779b4319fa
9
.github/workflows/docker.yml
vendored
9
.github/workflows/docker.yml
vendored
@ -27,6 +27,10 @@ on:
|
||||
type: boolean
|
||||
description: Dockerfile-arm64
|
||||
default: true
|
||||
Dockerfile-nvidia-arm64:
|
||||
type: boolean
|
||||
description: Dockerfile-nvidia-arm64
|
||||
default: true
|
||||
Dockerfile-jetson-jetpack6:
|
||||
type: boolean
|
||||
description: Dockerfile-jetson-jetpack6
|
||||
@ -73,6 +77,11 @@ jobs:
|
||||
platforms: "linux/arm64"
|
||||
runs_on: "ubuntu-24.04-arm"
|
||||
derivatives: ""
|
||||
- dockerfile: "Dockerfile-nvidia-arm64"
|
||||
tags: "latest-nvidia-arm64"
|
||||
platforms: "linux/arm64"
|
||||
runs_on: "ubuntu-24.04-arm"
|
||||
derivatives: ""
|
||||
- dockerfile: "Dockerfile-jetson-jetpack6"
|
||||
tags: "latest-jetson-jetpack6"
|
||||
platforms: "linux/arm64"
|
||||
|
||||
51
docker/Dockerfile-nvidia-arm64
Normal file
51
docker/Dockerfile-nvidia-arm64
Normal file
@ -0,0 +1,51 @@
|
||||
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
|
||||
|
||||
# Builds ultralytics/ultralytics:latest-nvidia-arm64 image on DockerHub https://hub.docker.com/r/ultralytics/ultralytics
|
||||
# Supports JetPack 7.0 and DGX OS for YOLO on Jetson AGX Thor (T5000) and DGX Spark
|
||||
|
||||
# Start FROM PyTorch image nvcr.io/nvidia/pytorch:25.10-py3
|
||||
FROM nvcr.io/nvidia/pytorch:25.10-py3
|
||||
|
||||
# Set environment variables
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
PIP_NO_CACHE_DIR=1 \
|
||||
PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
# Downloads to user config dir
|
||||
ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.ttf \
|
||||
https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.Unicode.ttf \
|
||||
/root/.config/Ultralytics/
|
||||
|
||||
# Install linux packages
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends libgl1 && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Create working directory
|
||||
WORKDIR /ultralytics
|
||||
|
||||
# Copy contents and configure git
|
||||
COPY . .
|
||||
RUN sed -i '/^\[http "https:\/\/github\.com\/"\]/,+1d' .git/config && \
|
||||
sed -i'' -e 's/"opencv-python/"opencv-python-headless/' pyproject.toml
|
||||
ADD https://github.com/ultralytics/assets/releases/download/v8.3.0/yolo11n.pt .
|
||||
|
||||
# Install pip packages (uv already installed in base image)
|
||||
RUN uv pip install --system \
|
||||
https://github.com/ultralytics/assets/releases/download/v0.0.0/onnxruntime_gpu-1.24.0-cp312-cp312-linux_aarch64.whl --break-system-packages && \
|
||||
# Reinstall torch and torchvision to ensure CUDA 13.0 compatibility
|
||||
uv pip install --system --force-reinstall torch torchvision --index-url https://download.pytorch.org/whl/cu130 --break-system-packages && \
|
||||
uv pip install --system -e ".[export]" --break-system-packages && \
|
||||
# Remove extra build files
|
||||
rm -rf *.whl /root/.config/Ultralytics/persistent_cache.json
|
||||
|
||||
# Usage --------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Production builds: https://github.com/ultralytics/ultralytics/blob/main/.github/workflows/docker.yml
|
||||
# Example (build): t=ultralytics/ultralytics:latest-nvidia-arm64 && docker build --platform linux/arm64 -f docker/Dockerfile-nvidia-arm64 -t $t .
|
||||
# Example (push): docker push $t
|
||||
# Example (pull): t=ultralytics/ultralytics:latest-nvidia-arm64 && docker pull $t
|
||||
# Example (run): docker run -it --ipc=host --runtime=nvidia $t
|
||||
# Example (run-with-volume): docker run -it --ipc=host --runtime=nvidia -v "$PWD/shared/datasets:/datasets" $t && docker push $tnew
|
||||
@ -108,7 +108,10 @@ The fastest way to get started with Ultralytics YOLO11 on NVIDIA Jetson is to ru
|
||||
|
||||
=== "JetPack 7"
|
||||
|
||||
Coming soon.
|
||||
```bash
|
||||
t=ultralytics/ultralytics:latest-nvidia-arm64
|
||||
sudo docker pull $t && sudo docker run -it --ipc=host --runtime=nvidia $t
|
||||
```
|
||||
|
||||
After this is done, skip to [Use TensorRT on NVIDIA Jetson section](#use-tensorrt-on-nvidia-jetson).
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
|
||||
|
||||
__version__ = "8.3.248"
|
||||
__version__ = "8.3.249"
|
||||
|
||||
import importlib
|
||||
import os
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user