Pin transformers version (#90)

Refs #88
This commit is contained in:
AbdBarho
2022-09-23 16:24:14 +02:00
committed by GitHub
parent b899f4e516
commit 556a50f49b
3 changed files with 4 additions and 3 deletions

View File

@ -47,12 +47,13 @@ RUN pip install --prefer-binary --no-cache-dir -r ${ROOT}/repositories/CodeForme
# Note: don't update the sha of previous versions because the install will take forever # Note: don't update the sha of previous versions because the install will take forever
# instead, update the repo state in a later step # instead, update the repo state in a later step
ARG SHA=d6fd71f36f33763f3a8d1d98f815e1e6a979e13e ARG SHA=79e7c392989ad70a1c02cbfe6eb38ee5a78bdbce
RUN <<EOF RUN <<EOF
cd stable-diffusion-webui cd stable-diffusion-webui
git pull --rebase git pull --rebase
git reset --hard ${SHA} git reset --hard ${SHA}
pip install --prefer-binary --no-cache-dir -r requirements.txt pip install --prefer-binary --no-cache-dir -r requirements.txt
pip install --prefer-binary --no-cache-dir -r requirements_versions.txt
EOF EOF
RUN pip install --prefer-binary -U --no-cache-dir opencv-python-headless RUN pip install --prefer-binary -U --no-cache-dir opencv-python-headless

View File

@ -34,7 +34,7 @@ conda env update --file environment.yaml -n base
conda clean -a -y conda clean -a -y
EOF EOF
RUN pip uninstall transformers -y && pip install -U --no-cache-dir pyperclip transformers==4.22 RUN pip install -U --no-cache-dir pyperclip
# Latent diffusion # Latent diffusion
RUN <<EOF RUN <<EOF

View File

@ -37,7 +37,7 @@ conda env update --file environment.yaml -n base
conda clean -a -y conda clean -a -y
EOF EOF
RUN pip uninstall opencv-python -y && pip install --prefer-binary --force-reinstall --no-cache-dir opencv-python-headless transformers==4.22 RUN pip uninstall opencv-python -y && pip install --prefer-binary --force-reinstall --no-cache-dir opencv-python-headless transformers==4.19.2
COPY . /docker/ COPY . /docker/
RUN <<EOF RUN <<EOF