!curl -Lo memfix.zip [<https://github.com/nolanaatama/sd-webui/raw/main/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](<http://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>](<https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui.zip>)
!unzip /content/sd-webui.zip
!git clone [<https://github.com/nolanaatama/sd-webui-tunnels>](<https://github.com/nolanaatama/sd-webui-tunnels>) /content/sd-webui/extensions/sd-webui-tunnels
!git clone [<https://github.com/Mikubill/sd-webui-controlnet>](<https://github.com/Mikubill/sd-webui-controlnet>) /content/sd-webui/extensions/sd-webui-controlnet
!git clone [<https://github.com/hnmr293/posex>](<https://github.com/hnmr293/posex>) /content/sd-webui/extensions/posex
!curl -Lo /content/sd-webui/extensions/sd-webui-images-browser.zip [<https://huggingface.co/nolanaatama/webui/resolve/main/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
#!curl -Lo /content/sd-webui/models/Stable-diffusion/chilloutmixni.safetensors [<https://huggingface.co/nolanaatama/chomni/resolve/main/chomni.safetensors>](<https://huggingface.co/nolanaatama/chomni/resolve/main/chomni.safetensors>)
!curl -Lo /content/sd-webui/models/Stable-diffusion/braBeautifulRealistic_v40.safetensors [<https://civitai.com/api/download/models/51395>](<https://civitai.com/api/download/models/51395>)
!curl -Lo /content/sd-webui/embeddings/euDNFnStFsdoJUEbKe5u7xzZ.zip [<https://downloads.fanbox.cc/files/post/5775230/euDNFnStFsdoJUEbKe5u7xzZ.zip>](<https://downloads.fanbox.cc/files/post/5775230/euDNFnStFsdoJUEbKe5u7xzZ.zip>)
!unzip /content/sd-webui/embeddings/euDNFnStFsdoJUEbKe5u7xzZ.zip -d /content/sd-webui/embeddings/
!rm -rf /content/sd-webui/embeddings/euDNFnStFsdoJUEbKe5u7xzZ.zip
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>](<https://huggingface.co/nolanaatama/embeddings>)
%cd /content/sd-webui/models
!git clone [<https://huggingface.co/nolanaatama/ESRGAN>](<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](<http://launch.py/>)