From 8f849312df34c79dc0ca73f117445b0e6a949972 Mon Sep 17 00:00:00 2001 From: Shahd Yousef Date: Tue, 26 Nov 2024 23:42:12 -0500 Subject: [PATCH] reverting. --- preprocessors/yolov8/Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/preprocessors/yolov8/Dockerfile b/preprocessors/yolov8/Dockerfile index 76f97d8c..b1f40f1b 100644 --- a/preprocessors/yolov8/Dockerfile +++ b/preprocessors/yolov8/Dockerfile @@ -15,14 +15,8 @@ RUN pip3 install --upgrade pip && \ COPY /schemas /usr/src/app/schemas -#check if the model exists; download it if not -RUN mkdir -p /usr/src/app/models && \ - if [ ! -f "/usr/src/app/models/yolov8x.pt" ]; then \ - echo "Model not found. Downloading..."; \ - wget -O /usr/src/app/models/yolov8x.pt https://image.a11y.mcgill.ca/models/objectDetectionWeights/yolov8x.pt; \ - else \ - echo "Model already exists. Skipping download."; \ - fi +RUN wget https://image.a11y.mcgill.ca/models/objectDetectionWeights/yolov8x.pt + COPY /preprocessors/yolov8 /usr/src/app EXPOSE 5000