File size: 3,966 Bytes
a59db85 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
{
"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
} |