{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "5e8b007b-bf15-4292-ab1c-0f7441ce8b5a", "metadata": { "scrolled": true, "tags": [] }, "outputs": [], "source": [ "!apt-get update && apt-get install ffmpeg libsm6 libxext6 -y" ] }, { "cell_type": "code", "execution_count": null, "id": "061230ef-819b-4100-9e04-b7be524e92a4", "metadata": { "tags": [] }, "outputs": [], "source": [ "!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui" ] }, { "cell_type": "code", "execution_count": null, "id": "3806770d-540d-4712-9fe6-248eb605a6ef", "metadata": { "scrolled": true, "tags": [] }, "outputs": [], "source": [ "%cd /workspace/stable-diffusion-webui/extensions\n", "\n", "exts = [\n", " \"https://github.com/Mikubill/sd-webui-controlnet\",\n", " \"https://github.com/DominikDoom/a1111-sd-webui-tagcomplete\",\n", " \"https://github.com/bbc-mc/sdweb-merge-block-weighted-gui\",\n", " \"https://github.com/catppuccin/stable-diffusion-webui\",\n", " \"https://github.com/kohya-ss/sd-webui-additional-networks\",\n", " \"https://github.com/picobyte/stable-diffusion-webui-wd14-tagger\",\n", " \"https://github.com/adieyal/sd-dynamic-prompts\",\n", " \"https://github.com/mcmonkeyprojects/sd-dynamic-thresholding\",\n", " \"https://github.com/Bing-su/adetailer\",\n", " \"https://github.com/Physton/sd-webui-prompt-all-in-one\",\n", " \"https://github.com/hnmr293/sd-webui-cutoff\",\n", " \"https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111\"\n", "]\n", "\n", "for repo in exts:\n", " !git clone {repo}\n", " \n", "%cd /workspace/stable-diffusion-webui" ] }, { "cell_type": "code", "execution_count": null, "id": "06738010-ecc9-4185-a0c7-58acf3daf1dd", "metadata": { "scrolled": true, "tags": [] }, "outputs": [], "source": [ "%cd /workspace/stable-diffusion-webui/models/Stable-diffusion\n", "\n", "models = [\n", " \"https://huggingface.co/junjuice0/VOXO/resolve/main/VOXO-v0.safetensors\",\n", " \"https://huggingface.co/junjuice0/test/resolve/main/VOXO-v0-1-vtuber-test2-half.safetensors\",\n", " \"https://huggingface.co/junjuice0/test/resolve/main/VOXO-VV-half.safetensors\",\n", " \"https://huggingface.co/junjuice0/GHIBA/resolve/main/GHIBA-v0.safetensors\",\n", " \"https://huggingface.co/CluelessC/hll-test/resolve/main/hll-5c.safetensors\",\n", " \"https://huggingface.co/junjuice0/test/resolve/main/kl-f8-anime2.vae.pt\",\n", " \"https://huggingface.co/NoCrypt/blessed_vae/resolve/main/blessed-fix.vae.pt\"\n", "]\n", "\n", "for url in models:\n", " !wget {url}\n", "\n", "%cd /workspace/stable-diffusion-webui/extensions/sd-dynamic-prompts\n", "!mkdir wildcards\n", "%cd wildcards\n", "!wget https://github.com/DonMischo/Billions-of-Wildcards-for-Stable-Diffusion/raw/main/Wildcards/billions_of_all_in_one.yaml\n", "\n", "%cd /workspace/stable-diffusion-webui/embeddings\n", "!wget https://huggingface.co/Xynon/models/resolve/main/experimentals/TI/bad-image-v2-39000.pt\n", "\n", "%cd /workspace/stable-diffusion-webui/extensions/sd-webui-controlnet/models\n", "!wget https://civitai.com/api/download/models/44736 --content-disposition\n", "!wget https://civitai.com/api/download/models/44811 --content-disposition\n", " \n", "%cd /workspace/stable-diffusion-webui\n", "\n", "!wget https://huggingface.co/junjuice0/test/raw/main/ui-config.json\n", "!wget https://huggingface.co/junjuice0/test/raw/main/config.json" ] }, { "cell_type": "code", "execution_count": null, "id": "7095135a-fcec-459a-bbaf-021ab6fe56ae", "metadata": { "tags": [] }, "outputs": [], "source": [ "!curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo \"deb https://ngrok-agent.s3.amazonaws.com buster main\" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok" ] }, { "cell_type": "code", "execution_count": null, "id": "0973bf4c-c1d6-4d12-aad3-5c422fa919b3", "metadata": {}, "outputs": [], "source": [ "!ngrok config add-authtoken" ] }, { "cell_type": "code", "execution_count": null, "id": "a8fb7eae", "metadata": {}, "outputs": [], "source": [ "!pip install xformers" ] }, { "cell_type": "code", "execution_count": null, "id": "c1a67d9b", "metadata": { "scrolled": true }, "outputs": [], "source": [ "!python launch.py --xformers " ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.11" } }, "nbformat": 4, "nbformat_minor": 5 }