Skip to content

Commit 62a3282

Browse files
authored
Protobuf required dependency (#429)
* Protobuf required dependency * fix setuptools issue (that is only triggered with latest peft version but most likely latent)
1 parent b1e3e45 commit 62a3282

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docker_images/diffusers/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ RUN pyenv install $PYTHON_VERSION && \
2727

2828
# Upgrade pip and install your desired packages
2929
ARG PIP_VERSION=22.3.1
30-
RUN pip install --no-cache-dir --upgrade pip==${PIP_VERSION} setuptools wheel && \
30+
31+
# FIXME: We temporarily need to specify the setuptools version <70 due to the following issue
32+
# https://stackoverflow.com/questions/78604018/importerror-cannot-import-name-packaging-from-pkg-resources-when-trying-to
33+
# https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/15863#issuecomment-2125026282
34+
RUN pip install --no-cache-dir --upgrade pip==${PIP_VERSION} setuptools'<70' wheel && \
3135
pip install --no-cache-dir torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2
3236

3337
WORKDIR /app

docker_images/diffusers/requirements.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,5 @@ uvicorn>=0.23.2
1717
gunicorn>=21.2.0
1818
psutil>=5.9.5
1919
aiohttp>=3.8.5
20-
# Tmp: replace with version once there is a tag above 0.8.1
21-
# This commit includes a fix that concerns
22-
# https://github.com/huggingface/diffusers/issues/6809
23-
# peft==0.7.1
24-
git+https://github.com/huggingface/peft.git@a30e006bb2f82824ab24435b9f07932738b44966
20+
peft==0.11.1
21+
protobuf==5.27.1

0 commit comments

Comments
 (0)