Skip to content

Commit

Permalink
reverting.
Browse files Browse the repository at this point in the history
  • Loading branch information
shahdyousefak committed Nov 27, 2024
1 parent 92b3317 commit 8f84931
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions preprocessors/yolov8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f84931

Please sign in to comment.