update invoke

This commit is contained in:
AbdBarho 2023-02-02 19:43:55 +01:00
parent 2280b8b7dd
commit 4de6a3ee16
2 changed files with 5 additions and 8 deletions

View file

@ -43,7 +43,7 @@ services:
<<: *base_service
profiles: ["invoke"]
build: ./services/invoke/
image: sd-invoke:21
image: sd-invoke:22
environment:
- PRELOAD=true
- CLI_ARGS=

View file

@ -41,12 +41,7 @@ ln -sf opencv4.pc opencv.pc
EOF
RUN --mount=type=cache,target=/root/.cache/pip \
--mount=type=bind,from=xformers,source=/wheel.whl,target=/xformers-0.0.15-cp310-cp310-linux_x86_64.whl \
pip install triton /xformers-0.0.15-cp310-cp310-linux_x86_64.whl
ARG BRANCH=main SHA=07e03b31b7610a27d709b366a491e57085d9b393
ARG BRANCH=main SHA=80c5322cccc6f9c6f77aaea80b4bb95e25bc05ba
RUN --mount=type=cache,target=/root/.cache/pip <<EOF
git fetch
git reset --hard
@ -57,8 +52,10 @@ pip install -r req.txt
rm req.txt
EOF
RUN --mount=type=cache,target=/root/.cache/pip \
pip install -U --force-reinstall opencv-python-headless huggingface_hub && \
--mount=type=bind,from=xformers,source=/wheel.whl,target=/xformers-0.0.15-cp310-cp310-linux_x86_64.whl \
pip install -U opencv-python-headless huggingface_hub triton /xformers-0.0.15-cp310-cp310-linux_x86_64.whl && \
python3 -c "from patchmatch import patch_match"