!curl -Lo memfix.zip <https://github.com/nolanaatama/sd-webui/raw/main/memfix.zip>
!unzip /content/memfix.zip
!apt install -qq libunwind8-dev
!dpkg -i *.deb
%env LD_PRELOAD=libtcmalloc.so
!rm *
!pip install --upgrade fastapi==0.90.1
!pip install torchmetrics==0.11.4 torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchtext==0.14.1 torchaudio==0.13.1 torchdata==0.5.1 --extra-index-url <https://download.pytorch.org/whl/cu117>
!curl -Lo sd-webui.zip <https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui.zip>
!unzip /content/sd-webui.zip
!git clone <https://github.com/nolanaatama/sd-webui-tunnels> /content/sd-webui/extensions/sd-webui-tunnels
!git clone <https://github.com/Mikubill/sd-webui-controlnet> /content/sd-webui/extensions/sd-webui-controlnet
!git clone <https://github.com/hnmr293/posex> /content/sd-webui/extensions/posex
## -- ↓↓↓ ここから ↓↓↓ sd-dynamic-promptingを"extensions"フォルダーに追加する
!git clone <https://github.com/adieyal/sd-dynamic-prompting/> /content/sd-webui/extensions/dynamic-prompts
## -- ↑↑↑ ここまで ↑↑↑
## -- ↓↓↓ ここから ↓↓↓ sd-dynamic-promptingを"extensions"フォルダーに追加する
!mkdir -p /content/sd-webui/extensions/dynamic-prompts/wildcards
!touch /content/sd-webui/extensions/dynamic-prompts/wildcards/xxx.txt
## -- ↑↑↑ ここまで ↑↑↑
!curl -Lo /content/sd-webui/extensions/sd-webui-images-browser.zip <https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui-images-browser.zip>
%cd /content/sd-webui/extensions
!unzip /content/sd-webui/extensions/sd-webui-images-browser.zip
%cd /content
## vaeを追加
!curl -Lo /content/sd-webui/models/VAE/vae-ft-ema-560000-ema-pruned.ckpt <https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt>
import shutil
shutil.rmtree('/content/sd-webui/embeddings')
!rm sd-webui.zip
!rm sd-webui-images-browser.zip
%cd /content/sd-webui
!git clone <https://huggingface.co/nolanaatama/embeddings>
%cd /content/sd-webui/models
!git clone <https://huggingface.co/nolanaatama/ESRGAN>
%cd /content/sd-webui
!COMMANDLINE_ARGS="--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension --gradio-queue --remotemoe" REQS_FILE="requirements.txt" python launch.py
google colab
https://colab.research.google.com/?hl=ja
CIVITAIダウンロードURL
https://github.com/Vetchems/sd-civitai-browser
モデル(Checkpoint):
https://civitai.com/models/15003/cyberrealistic
参考にしたプロンプト: https://civitai.com/images/831291?period=AllTime&periodMode=published&sort=Newest&view=categories&modelVersionId=74356&modelId=45757&postId=223826