This commit is contained in:
AbdBarho 2023-03-07 20:03:16 +01:00
parent 555c26b7ce
commit 3bf01fc3c9
3 changed files with 6 additions and 6 deletions

View file

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

View file

@ -36,7 +36,7 @@ RUN \
ln -sf opencv4.pc opencv.pc ln -sf opencv4.pc opencv.pc
ARG BRANCH=main SHA=6e0c6d9cc9f6bdbdefc4b9e94bc1ccde1b04aa42 ARG BRANCH=main SHA=8762069b37f996c4a61757e0283bc5d88e275907
RUN --mount=type=cache,target=/root/.cache/pip \ RUN --mount=type=cache,target=/root/.cache/pip \
git fetch && \ git fetch && \
git reset --hard && \ git reset --hard && \
@ -46,8 +46,8 @@ RUN --mount=type=cache,target=/root/.cache/pip \
RUN --mount=type=cache,target=/root/.cache/pip \ 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 \ --mount=type=bind,from=xformers,source=/wheel.whl,target=/xformers-0.0.17-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 && \ pip install -U opencv-python-headless triton /xformers-0.0.17-cp310-cp310-linux_x86_64.whl && \
python3 -c "from patchmatch import patch_match" python3 -c "from patchmatch import patch_match"

View file

@ -40,7 +40,7 @@ done
if "${PRELOAD}" == "true"; then if "${PRELOAD}" == "true"; then
set -Eeuo pipefail set -Eeuo pipefail
invokeai-configure --skip-sd-weights --root ${ROOT} --yes # invokeai-configure --skip-sd-weights --root ${ROOT} --yes
fi fi
sleep 100
exec "$@" exec "$@"