{ "cells": [ { "cell_type": "markdown", "source": [ "# 1. Setup the web ui" ], "metadata": { "id": "bsiZpfkU7S77" } }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "sBbcB4vwj_jm" }, "outputs": [], "source": [ "!pip install --upgrade fastapi==0.90.0\n", "!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui\n", "!git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser\n", "\n", "# Model(s) setup\n", "# Below are model code for AbyssOrangeMix2, we always could change it to our desired model (how-to: https://youtu.be/vj-QrS_mWQI or https://youtu.be/MwyfwPFezvY)\n", "!curl -Lo abyssorangemix2.safetensors https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/Models/AbyssOrangeMix2/AbyssOrangeMix2_hard.safetensors\n", "!curl -Lo abyssorangemix2.vae.pt https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/VAEs/orangemix.vae.pt\n", "!mv \"/content/abyssorangemix2.safetensors\" \"/content/stable-diffusion-webui/models/Stable-diffusion\"\n", "!mv \"/content/abyssorangemix2.vae.pt\" \"/content/stable-diffusion-webui/models/Stable-diffusion\"\n", "\n", "# Additional embeddings\n", "!curl -Lo bad-artist.pt https://huggingface.co/nick-x-hacker/bad-artist/resolve/main/bad-artist.pt\n", "!curl -Lo bad-artist-anime.pt https://huggingface.co/nick-x-hacker/bad-artist/resolve/main/bad-artist-anime.pt\n", "!curl -Lo bad_prompt_version2.pt https://huggingface.co/datasets/Nerfgun3/bad_prompt/resolve/main/bad_prompt_version2.pt\n", "!mv \"/content/bad-artist.pt\" \"/content/stable-diffusion-webui/embeddings\"\n", "!mv \"/content/bad-artist-anime.pt\" \"/content/stable-diffusion-webui/embeddings\"\n", "!mv \"/content/bad_prompt_version2.pt\" \"/content/stable-diffusion-webui/embeddings\"\n", "\n", "%cd /content/stable-diffusion-webui\n", "!git checkout 91c8d0d\n", "!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --enable-insecure-extension-access\" REQS_FILE=\"requirements.txt\" python launch.py" ] }, { "cell_type": "markdown", "source": [ "# 2. After the gradio link show up, stop the first cell & clear the code output👆" ], "metadata": { "id": "JUtPlg328avv" } }, { "cell_type": "markdown", "source": [ "# 3. Load the LoRA & launch the web ui" ], "metadata": { "id": "qxhOCPrg7WXm" } }, { "cell_type": "code", "source": [ "!curl -Lo takada_akemi.safetensors https://huggingface.co/nolanaatama/at80slora/resolve/main/at80slora.safetensors\n", "!mv \"/content/stable-diffusion-webui/takada_akemi.safetensors\" \"/content/stable-diffusion-webui/models/Lora\"\n", "!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension-access\" REQS_FILE=\"requirements.txt\" python launch.py" ], "metadata": { "id": "pZVeLcbD70Lf" }, "execution_count": null, "outputs": [] }, { "cell_type": "markdown", "metadata": { "id": "fhwIXzcgfkoR" }, "source": [ "# 📚 GitHub for more: [_@nolanaatama_](https://github.com/nolanaatama)\n", "# 📦 Repo: [Github](https://github.com/nolanaatama/sd-1click-colab)" ] } ], "metadata": { "accelerator": "GPU", "colab": { "provenance": [] }, "gpuClass": "standard", "kernelspec": { "display_name": "Python 3", "name": "python3" }, "language_info": { "name": "python" } }, "nbformat": 4, "nbformat_minor": 0 }