From 5122f83c0f820f7d06a6a51a81ba8b9c1b7d6110 Mon Sep 17 00:00:00 2001 From: ProducerMatt <58014742+ProducerMatt@users.noreply.github.com> Date: Sun, 23 Oct 2022 01:05:28 -0600 Subject: [PATCH] Tags for CLIP interrogation (#166) This populates a folder with tags for the CLIP interrogator to label images with. I.e. artists, art styles, art mediums, moods and genres, etc. --- services/AUTOMATIC1111/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/AUTOMATIC1111/Dockerfile b/services/AUTOMATIC1111/Dockerfile index 6181324..0509322 100644 --- a/services/AUTOMATIC1111/Dockerfile +++ b/services/AUTOMATIC1111/Dockerfile @@ -20,6 +20,7 @@ EOF RUN git clone https://github.com/crowsonkb/k-diffusion.git repositories/k-diffusion && cd repositories/k-diffusion && git reset --hard f4e99857772fc3a126ba886aadf795a332774878 +RUN git clone https://github.com/pharmapsychotic/clip-interrogator repositories/clip-interrogator && cd repositories/clip-interrogator && git reset --hard 2486589f24165c8e3b303f84e9dbbea318df83e8 FROM alpine:3 as xformers RUN apk add aria2 @@ -48,6 +49,7 @@ ENV ROOT=/stable-diffusion-webui \ COPY --from=download /git/ ${ROOT} +RUN mkdir ${ROOT}/interrogate && cp ${ROOT}/repositories/clip-interrogator/data/* ${ROOT}/interrogate RUN pip install --prefer-binary --no-cache-dir -r ${ROOT}/repositories/CodeFormer/requirements.txt # TODO: move to top @@ -74,11 +76,11 @@ COPY --from=xformers /wheel.whl xformers-0.0.14.dev0-cp310-cp310-linux_x86_64.wh RUN pip install xformers-0.0.14.dev0-cp310-cp310-linux_x86_64.whl COPY . /docker + RUN <