File size: 3,355 Bytes
964125d |
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 |
{
"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.1\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",
"!git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete /content/stable-diffusion-webui/extensions/a1111-sd-webui-tagcomplete\n",
"\n",
"# Model(s) setup\n",
"# Below are model code for ChilloutMix, 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 chilloutmixni.safetensors https://huggingface.co/nolanaatama/chomni/resolve/main/chomni.safetensors\n",
"!mv \"/content/chilloutmixni.safetensors\" \"/content/stable-diffusion-webui/models/Stable-diffusion\"\n",
"\n",
"import shutil\n",
"shutil.rmtree('/content/stable-diffusion-webui/embeddings')\n",
"%cd /content/stable-diffusion-webui\n",
"!git checkout 3715ece\n",
"!git clone https://huggingface.co/nolanaatama/embeddings\n",
"!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --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 koreanDollLikeness_v15.safetensors https://huggingface.co/nolanaatama/kdllora/resolve/main/kdllorav15.safetensors\n",
"!mv \"/content/stable-diffusion-webui/koreanDollLikeness_v15.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
} |