ultralytics 8.3.49 Docker images uv pip install (#18115)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Lakshantha Dissanayake <lakshantha@ultralytics.com>
This commit is contained in:
parent
5c31766b0d
commit
6c65d756e4
9 changed files with 24 additions and 23 deletions
|
|
@ -40,18 +40,18 @@ RUN sed -i '/^\[http "https:\/\/github\.com\/"\]/,+1d' .git/config
|
|||
ADD https://github.com/ultralytics/assets/releases/download/v8.3.0/yolo11n.pt .
|
||||
|
||||
# Install pip packages
|
||||
RUN python3 -m pip install --upgrade pip wheel
|
||||
RUN pip install uv
|
||||
# Note -cu12 must be used with tensorrt)
|
||||
RUN pip install -e ".[export]" tensorrt-cu12 "albumentations>=1.4.6" comet pycocotools
|
||||
RUN uv pip install --system -e ".[export]" tensorrt-cu12 "albumentations>=1.4.6" comet pycocotools
|
||||
|
||||
# Run exports to AutoInstall packages
|
||||
# Edge TPU export fails the first time so is run twice here
|
||||
RUN yolo export model=tmp/yolo11n.pt format=edgetpu imgsz=32 || yolo export model=tmp/yolo11n.pt format=edgetpu imgsz=32
|
||||
RUN yolo export model=tmp/yolo11n.pt format=ncnn imgsz=32
|
||||
# Requires <= Python 3.10, bug with paddlepaddle==2.5.0 https://github.com/PaddlePaddle/X2Paddle/issues/991
|
||||
RUN pip install "paddlepaddle>=2.6.0" x2paddle
|
||||
RUN uv pip install --system "paddlepaddle>=2.6.0" x2paddle
|
||||
# Fix error: `np.bool` was a deprecated alias for the builtin `bool` segmentation error in Tests
|
||||
RUN pip install numpy==1.23.5
|
||||
RUN uv pip install --system numpy==1.23.5
|
||||
|
||||
# Remove extra build files
|
||||
RUN rm -rf tmp /root/.config/Ultralytics/persistent_cache.json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue