mirror of
https://github.com/ultralytics/ultralytics.git
synced 2025-09-15 15:48:41 +08:00
Update Dockerfile-python with JRE (#19925)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
893f3d4303
commit
3deb509b8b
@ -19,9 +19,10 @@ ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.ttf \
|
||||
|
||||
# Install linux packages
|
||||
# g++ required to build 'tflite_support' and 'lap' packages, libusb-1.0-0 required for 'tflite_support' package
|
||||
# Java runtime environment (default-jre) required for Sony IMX export
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
python3-pip git zip unzip wget curl htop libgl1 libglib2.0-0 libpython3-dev gnupg g++ libusb-1.0-0 \
|
||||
python3-pip git zip unzip wget curl htop libgl1 libglib2.0-0 libpython3-dev gnupg g++ libusb-1.0-0 default-jre \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Create working directory
|
||||
@ -35,10 +36,13 @@ ADD https://github.com/ultralytics/assets/releases/download/v8.3.0/yolo11n.pt .
|
||||
# Install pip packages
|
||||
RUN pip install uv
|
||||
RUN uv pip install --system -e ".[export]" --extra-index-url https://download.pytorch.org/whl/cpu --index-strategy unsafe-best-match
|
||||
# Need lower version of 'numpy' for Sony IMX export
|
||||
RUN uv pip install --system numpy==1.26.4
|
||||
|
||||
# Run exports to AutoInstall packages
|
||||
RUN yolo export model=tmp/yolo11n.pt format=edgetpu imgsz=32
|
||||
RUN yolo export model=tmp/yolo11n.pt format=ncnn imgsz=32
|
||||
RUN yolo export model=tmp/yolov8n.pt format=imx imgsz=32
|
||||
RUN uv pip install --system "paddlepaddle<3.0.0" x2paddle
|
||||
|
||||
# Remove extra build files
|
||||
|
||||
Loading…
Reference in New Issue
Block a user