Path: blob/main/special/lite/vladmandic_automatic_webui_colab.ipynb
1806 views
Kernel: Python 3
In [ ]:
%cd /content %env TF_CPP_MIN_LOG_LEVEL=1 !apt -y update -qq !wget https://github.com/camenduru/gperftools/releases/download/v1.0/libtcmalloc_minimal.so.4 -O /content/libtcmalloc_minimal.so.4 %env LD_PRELOAD=/content/libtcmalloc_minimal.so.4 !apt -y install -qq aria2 libcairo2-dev pkg-config python3-dev !pip install -q torch==2.0.0+cu118 torchvision==0.15.1+cu118 torchaudio==2.0.1+cu118 torchtext==0.15.1 torchdata==0.6.0 --extra-index-url https://download.pytorch.org/whl/cu118 -U !git clone https://github.com/vladmandic/automatic /content/stable-diffusion-webui !git clone https://huggingface.co/embed/negative /content/stable-diffusion-webui/embeddings/negative !git clone https://huggingface.co/embed/lora /content/stable-diffusion-webui/models/Lora/positive !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/embed/upscale/resolve/main/4x-UltraSharp.pth -d /content/stable-diffusion-webui/models/ESRGAN -o 4x-UltraSharp.pth !wget https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py -O /content/stable-diffusion-webui/scripts/run_n_times.py !git clone https://github.com/etherealxx/batchlinks-webui /content/stable-diffusion-webui/extensions/batchlinks-webui %cd /content/stable-diffusion-webui !git reset --hard !git -C /content/stable-diffusion-webui/repositories/stable-diffusion-stability-ai reset --hard !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/sd15/resolve/main/v1-5-pruned-emaonly.ckpt -d /content/stable-diffusion-webui/models/Stable-diffusion -o model.ckpt !sed -i -e 's/\["sd_model_checkpoint"\]/\["sd_model_checkpoint","sd_vae","CLIP_stop_at_last_layers"\]/g' /content/stable-diffusion-webui/modules/shared.py !python launch.py --share