Skip to content

Commit

Permalink
build(deps): bump scikit-learn from 1.0.1 to 1.5.0 in /preprocessors/…
Browse files Browse the repository at this point in the history
…clothes-detector (#891)

* build(deps): bump scikit-learn in /preprocessors/clothes-detector

Bumps [scikit-learn](https://github.com/scikit-learn/scikit-learn) from 1.0.1 to 1.5.0.
- [Release notes](https://github.com/scikit-learn/scikit-learn/releases)
- [Commits](scikit-learn/scikit-learn@1.0.1...1.5.0)

---
updated-dependencies:
- dependency-name: scikit-learn
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* modifying the base image to support python 3.9+

* Accidentally modified caption-recognition instead of clothes-detector

* Accidentally modified caption-recognition instead of clothes-detector

* retrying with an updated pytorch version

* correcting version

* updating requirements.txt accordingly

* adding several matplotlib system libraries

* adding build-essential

* tidying up the Dockerfile

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Shahd Yousef <[email protected]>
  • Loading branch information
dependabot[bot] and shahdyousefak authored Oct 19, 2024
1 parent 4850268 commit f58f1d8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
25 changes: 13 additions & 12 deletions preprocessors/clothes-detector/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
FROM pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime
FROM pytorch/pytorch:2.4.1-cuda11.8-cudnn9-runtime

RUN adduser --disabled-password python
WORKDIR /app
ENV PATH="/home/python/.local/bin:${PATH}"

RUN apt-get update && apt-get install -y python3-opencv wget && rm -rf /var/lib/apt/lists/*
#install system dependencies
RUN apt-get update && \
apt-get install -y python3-opencv wget && \
apt-get install -y build-essential libfreetype6-dev libpng-dev libharfbuzz-dev libcairo2-dev python3-dev && \
rm -rf /var/lib/apt/lists/*

COPY /preprocessors/clothes-detector/requirements.txt /app/requirements.txt
# COPY ./requirements.txt /app/requirements.txt
Expand All @@ -14,19 +18,16 @@ RUN apt-get update -y && \
apt-get dist-upgrade -y && \
apt-get -y autoremove && \
apt-get clean
RUN apt-get install -y p7zip \
p7zip-full \
unace \
zip \
unzip
RUN pip3 install --upgrade pip
RUN pip3 install -r /app/requirements.txt
RUN wget https://image.a11y.mcgill.ca/models/clothesDetector/yolo.zip
RUN unzip yolo.zip
RUN apt-get install -y p7zip p7zip-full unace zip unzip

RUN pip3 install --upgrade pip && \
pip3 install -r /app/requirements.txt

RUN wget https://image.a11y.mcgill.ca/models/clothesDetector/yolo.zip && \
unzip yolo.zip

COPY /schemas /app/schemas
# COPY ./schemas /app/schemas
WORKDIR /app
COPY /preprocessors/clothes-detector /app
# COPY ./ /app

Expand Down
6 changes: 3 additions & 3 deletions preprocessors/clothes-detector/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ jsonschema==3.2.0
requests==2.32.0
Werkzeug==3.0.3
gunicorn==22.0.0
numpy==1.23
opencv-python== 4.4.0.44
numpy==2.1.2
opencv-python==4.10.0.84
webcolors==1.12
Pillow==10.3.0
torch==1.13.1
matplotlib==3.4.3
scikit-learn==1.0.1
scikit-learn==1.5.0
colorthief

0 comments on commit f58f1d8

Please sign in to comment.