{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "cellView": "form", "id": "xGTkPoBtcXXn" }, "outputs": [], "source": [ "#@markdown # **👈🏻 Run This Cell For SD Auto1111 Setup**\n", "#@markdown -\n", "\n", "#@markdown ##🚫Please Do Not Mess With Code, if you do it will give an error🚫\n", "\n", "#@markdown - **Automatic1111 v1.6.0**\n", "#@markdown - **All Controlnet Added**\n", "#@markdown - **additional extentions - 1. inpaint anyting, 2. image browser**\n", "from IPython.display import clear_output\n", "from IPython.utils import capture\n", "from subprocess import getoutput\n", "import ipywidgets as widgets\n", "import sys\n", "import fileinput\n", "import os\n", "import time\n", "import subprocess\n", "from datetime import datetime\n", "\n", "!wget https://huggingface.co/imspidey/colab/resolve/main/cmd.txt -qq\n", "\n", "with open(\"/content/cmd.txt\", \"r\") as file:\n", " commands = file.readlines()\n", "for command in commands :\n", " subprocess.run(command,shell=True)\n", "\n", "%cd /content/spidey/embeddings\n", "!unzip /content/spidey/embeddings/embeddings.zip\n", "%cd /content/spidey/models/ESRGAN\n", "!unzip /content/spidey/models/ESRGAN/upscalers.zip\n", "!rm upscalers.zip\n", "%cd /content/spidey\n", "!pip install gitpython\n", "%cd /content/\n", "!mkdir /content/more\n", "!curl -Lo /content/more/ExtensionsSD.py https://huggingface.co/imspidey/NoteBook/resolve/main/ExtensionsSD.py\n", "%cd /content/more/\n", "!python ExtensionsSD.py\n", "%cd /content/\n", "!rm -r /content/more\n", "%cd /content/spidey/models/Stable-diffusion/\n", "!wget https://huggingface.co/XpucT/Anime/resolve/main/Anime.safetensors\n", "%cd /content/spidey" ] }, { "cell_type": "markdown", "metadata": { "id": "orUZE9mEkxcT" }, "source": [ "### 1. After the gradio link show up, stop the first cell & clear the code output👆" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "cellView": "form", "id": "xIAEU0gQks80" }, "outputs": [], "source": [ "#@markdown #👈🏻 **Run The Cell, Load the LoRA & launch the web ui**\n", "\n", "#@markdown **(epi_noiseoffset2), (add_detail), (more_details)**\n", "\n", "#@markdown **these 3 Lora ALredy Added**\n", "\n", "\n", "# Copy the LoRA code from other LoRA setup (download the setup file after editing the LoRA code cell to avoid repeat input for next session)\n", "\n", "#epi_noiseoffset2\n", "!curl -Lo /content/spidey/models/Lora/epi_noiseoffset2.safetensors https://huggingface.co/imspidey/mainLora/resolve/main/epi_noiseoffset2.safetensors\n", "\n", "#add_detail\n", "!curl -Lo /content/spidey/models/Lora/add_detail.safetensors https://huggingface.co/imspidey/mainLora/resolve/main/add_detail.safetensors\n", "\n", "#more_details\n", "!curl -Lo /content/spidey/models/Lora/more_details.safetensors https://huggingface.co/imspidey/mainLora/resolve/main/more_details.safetensors\n", "\n", "# Remove '#' from the beginning of the line(s) below to download the selected Lora Models\n", "\n", "#Additional LoRA 1\n", "#!curl -Lo /content/spidey/models/Lora/\n", "\n", "# Additional LoRA 2\n", "#!curl -Lo /content/spidey/models/Lora/\n", "\n", "# Additional LoRA 3\n", "#!curl -Lo /content/spidey/models/Lora/\n", "\n", "# Web UI tunnel\n", "!python launch.py --share --listen --xformers --enable-insecure-extension-access --no-half-vae --gradio-queue --remotemoe" ] } ], "metadata": { "accelerator": "GPU", "colab": { "gpuType": "T4", "provenance": [] }, "kernelspec": { "display_name": "Python 3", "name": "python3" }, "language_info": { "name": "python" } }, "nbformat": 4, "nbformat_minor": 0 }