mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-03-22 13:04:45 +01:00
lsteiin
This commit is contained in:
parent
f7af97691c
commit
42145a1168
13
README.md
13
README.md
|
|
@ -40,15 +40,20 @@ Screenshots:
|
||||||
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
||||||
|  |  |  |
|
|  |  |  |
|
||||||
|
|
||||||
<!--
|
|
||||||
|
|
||||||
### lstein
|
### lstein
|
||||||
|
|
||||||
[lstein's fork](https://github.com/lstein/stable-diffusion) is very mature when it comes to the cli, and the WebUI has potential.
|
[lstein's fork](https://github.com/invoke-ai/InvokeAI) is one of the earliest with a wonderful WebUI.
|
||||||
|
- Text to image, with many samplers
|
||||||
|
- Image to image
|
||||||
|
- 4GB GPU support
|
||||||
|
- More coming!
|
||||||
|
- [Full feature list here](https://github.com/invoke-ai/InvokeAI#features)
|
||||||
|
|
||||||
| Text to image | Image to image | Extras |
|
| Text to image | Image to image | Extras |
|
||||||
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
||||||
|  |  |  |
|
|  |  |  |
|
||||||
-->
|
|
||||||
|
|
||||||
## Setup & Usage
|
## Setup & Usage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,15 +17,14 @@ ENV PIP_EXISTS_ACTION=w
|
||||||
RUN <<EOF
|
RUN <<EOF
|
||||||
git clone https://github.com/invoke-ai/InvokeAI.git stable-diffusion
|
git clone https://github.com/invoke-ai/InvokeAI.git stable-diffusion
|
||||||
cd stable-diffusion
|
cd stable-diffusion
|
||||||
git reset --hard 8a8be92eac17e0ef699528157596b2336bdee532
|
git reset --hard 79e79b78aaeedb49afcc795e0e00eebfdbedee96
|
||||||
sed -i -- 's/python=3.8.5/python=3.9/g' environment.yaml
|
|
||||||
git config --global http.postBuffer 1048576000
|
git config --global http.postBuffer 1048576000
|
||||||
conda env update --file environment.yaml -n base
|
conda env update --file environment.yml -n base
|
||||||
conda clean -a -y
|
conda clean -a -y
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
ARG BRANCH=development SHA=31869885d9d3ee1e62c1109fb141e828e9a0e833
|
ARG BRANCH=main SHA=79e79b78aaeedb49afcc795e0e00eebfdbedee96
|
||||||
RUN <<EOF
|
RUN <<EOF
|
||||||
cd stable-diffusion
|
cd stable-diffusion
|
||||||
git fetch
|
git fetch
|
||||||
|
|
@ -36,7 +35,7 @@ conda env update --file environment.yml -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.19.2
|
RUN pip uninstall opencv-python -y && pip install --prefer-binary --force-reinstall --no-cache-dir opencv-python-headless
|
||||||
|
|
||||||
COPY . /docker/
|
COPY . /docker/
|
||||||
RUN <<EOF
|
RUN <<EOF
|
||||||
|
|
@ -50,4 +49,4 @@ WORKDIR /stable-diffusion
|
||||||
EXPOSE 7860
|
EXPOSE 7860
|
||||||
|
|
||||||
CMD /docker/mount.sh && \
|
CMD /docker/mount.sh && \
|
||||||
python3 -u scripts/dream.py --outdir /output --web --host 0.0.0.0 --port 7860 ${CLI_ARGS}
|
python3 -u scripts/invoke.py --outdir /output --web --host 0.0.0.0 --port 7860 ${CLI_ARGS}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ MOUNTS["/root/.cache"]=/data/.cache
|
||||||
# ui specific
|
# ui specific
|
||||||
MOUNTS["${PWD}/models/ldm/stable-diffusion-v1/model.ckpt"]=/data/StableDiffusion/model.ckpt
|
MOUNTS["${PWD}/models/ldm/stable-diffusion-v1/model.ckpt"]=/data/StableDiffusion/model.ckpt
|
||||||
MOUNTS["${PWD}/src/gfpgan/experiments/pretrained_models/GFPGANv1.4.pth"]=/data/GFPGAN/GFPGANv1.4.pth
|
MOUNTS["${PWD}/src/gfpgan/experiments/pretrained_models/GFPGANv1.4.pth"]=/data/GFPGAN/GFPGANv1.4.pth
|
||||||
MOUNTS["${PWD}/ldm/dream/restoration/codeformer/weights"]=/data/CodeFormer
|
MOUNTS["${PWD}/ldm/invoke/restoration/codeformer/weights"]=/data/CodeFormer
|
||||||
# hacks
|
# hacks
|
||||||
MOUNTS["/opt/conda/lib/python3.9/site-packages/facexlib/weights"]=/data/.cache
|
MOUNTS["/opt/conda/lib/python3.9/site-packages/facexlib/weights"]=/data/.cache
|
||||||
MOUNTS["/opt/conda/lib/python3.9/site-packages/realesrgan/weights"]=/data/RealESRGAN
|
MOUNTS["/opt/conda/lib/python3.9/site-packages/realesrgan/weights"]=/data/RealESRGAN
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue