|
|
|
|
|
|
|
|
|
|
|
FROM nvcr.io/nvidia/l4t-cuda:10.2.460-runtime
|
|
|
|
|
|
ENV PYTHONUNBUFFERED=1 \
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
|
|
|
|
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/
|
|
|
|
|
|
RUN wget -q -O - https://repo.download.nvidia.com/jetson/jetson-ota-public.asc | apt-key add - && \
|
|
echo "deb https://repo.download.nvidia.com/jetson/common r32.7 main" > /etc/apt/sources.list.d/nvidia-l4t-apt-source.list && \
|
|
echo "deb https://repo.download.nvidia.com/jetson/t194 r32.7 main" >> /etc/apt/sources.list.d/nvidia-l4t-apt-source.list
|
|
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
git python3.8 python3.8-dev python3-pip python3-libnvinfer libopenmpi-dev libopenblas-base libomp-dev gcc \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
RUN ln -sf /usr/bin/python3.8 /usr/bin/python3
|
|
RUN ln -s /usr/bin/pip3 /usr/bin/pip
|
|
|
|
|
|
WORKDIR /ultralytics
|
|
|
|
|
|
COPY . .
|
|
RUN sed -i '/^\[http "https:\/\/github\.com\/"\]/,+1d' .git/config
|
|
ADD https://github.com/ultralytics/assets/releases/download/v8.3.0/yolo11n.pt .
|
|
|
|
|
|
|
|
ADD https://nvidia.box.com/shared/static/gjqofg7rkg97z3gc8jeyup6t8n9j8xjw.whl onnxruntime_gpu-1.8.0-cp38-cp38-linux_aarch64.whl
|
|
ADD https://forums.developer.nvidia.com/uploads/short-url/hASzFOm9YsJx6VVFrDW1g44CMmv.whl tensorrt-8.2.0.6-cp38-none-linux_aarch64.whl
|
|
|
|
|
|
RUN python3 -m pip install --upgrade pip wheel
|
|
RUN pip install \
|
|
onnxruntime_gpu-1.8.0-cp38-cp38-linux_aarch64.whl \
|
|
tensorrt-8.2.0.6-cp38-none-linux_aarch64.whl \
|
|
https://github.com/ultralytics/assets/releases/download/v0.0.0/torch-1.11.0a0+gitbc2c6ed-cp38-cp38-linux_aarch64.whl \
|
|
https://github.com/ultralytics/assets/releases/download/v0.0.0/torchvision-0.12.0a0+9b5a3fe-cp38-cp38-linux_aarch64.whl
|
|
RUN pip install -e ".[export]"
|
|
|
|
|
|
RUN rm -rf *.whl /root/.config/Ultralytics/persistent_cache.json
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|