Update Dockerfile to fix np.bool deprecation (#3998)

This commit is contained in:
Glenn Jocher
2023-07-27 19:55:01 +02:00
committed by GitHub
parent fa5c8f2764
commit c20d2654e9

View File

@ -37,6 +37,8 @@ RUN yolo export model=tmp/yolov8n.pt format=edgetpu imgsz=32
RUN yolo export model=tmp/yolov8n.pt format=ncnn imgsz=32
# Requires <= Python 3.10, bug with paddlepaddle==2.5.0
RUN pip install --no-cache paddlepaddle==2.4.2 x2paddle
# Fix error: `np.bool` was a deprecated alias for the builtin `bool`
RUN pip install --no-cache numpy==1.23.5
# Remove exported models
RUN rm -rf tmp