{ "cells": [ { "cell_type": "markdown", "source": [ "# (필독) 사용설명서" ], "metadata": { "id": "fY-skp5rLm7N" } }, { "cell_type": "markdown", "source": [ "DiffusionUI를 실행시키려면 1번부터 4번까지 순서대로 누르기만 하면 된다." ], "metadata": { "id": "os22LWKiLm7T" } }, { "cell_type": "markdown", "source": [ "(2. 설정 -> CONFIG) 항목은 원하는 모델에 따라 조절이 필요한 곳이다.\n", "\n", "모든 세팅이 끝나고 실행버튼을 누르면 된다." ], "metadata": { "id": "7Qh_EnFhLm7T" } }, { "cell_type": "markdown", "source": [ "Model_select는 어떤 모델을 쓸지 선택하는 칸이다." ], "metadata": { "id": "xEXukbjkLm7T" } }, { "cell_type": "markdown", "source": [ "Marge_set 선택시\n", "\n", "SD, WD, Trin, NSFW 모델을 전부 다운받는다." ], "metadata": { "id": "kW3S0a_gCaN7" } }, { "cell_type": "markdown", "source": [ "Gdirve_link는 Gdrive Model 선택시 사용하는 칸으로,\n", "\n", "구글 드라이브에서 모델을 다운로드 받을 수 있게 한다.\n", "\n", "https://drive.google.com/file/d/***/view?usp=sharing\n", "\n", "와 같은 구글 드라이브 링크에서 *** 에 해당하는 부분을 입력하면 된다." ], "metadata": { "id": "u2xfH02VLm7U" } }, { "cell_type": "markdown", "source": [ "Web_link는 Web Model 선택시 사용하는 칸으로, \n", "\n", "다른 웹사이트에서 모델을 다운받을때 웹사이트 링크를 입력하면 된다.\n", "\n", "단, 그 링크를 클릭했을때 모델이 바로 다운로드 되어야한다." ], "metadata": { "id": "fj8SZ-KLLm7U" } }, { "cell_type": "markdown", "source": [ "(4. DiffusionUI 시작) 항목 실행시\n", "\n", "셀 출력에서 https://*****.gradio.app 과 같은 링크가 생길것이다.\n", "\n", "***** 부분은 실행시마다 랜덤하게 바뀌는 숫자이다.\n", "\n", "예시) https://12345.gradio.app\n", "\n", "그 링크를 클릭하면 다음과 같은 화면이 나올것이다.\n", "\n", "![캡처.PNG](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABT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IkhcuwKUmSJEmSJClchk1JkiRJkiRJ4TJsSpIkSZIkSQqXYVOSJEmSJElSuAybkiRJkiRJksJl2JQkSZIkSZIULsOmJEmSJEmSpHAZNiVJkiRJkiSFy7ApSZIkSZIkKVyGTUmSJEmSJEnhMmxKkiRJkiRJCpdhU5IkSZIkSVK4DJuSJEmSJEmSwmXYlCRJkiRJkhQuw6YkSZIkSZKkcBk2JUmSJEmSJIXLsClJkiRJkiQpXIZNSZIkSZIkSeEybEqSJEmSJEkKl2FTkiRJkiRJUrgMm5IkSZIkSZLCZdiUJEmSJEmSFC7DpiRJkiRJkqRwGTYlSZIkSZIkhcuwKUmSJEmSJClchk1JkiRJkiRJ4TJsSpIkSZIkSQqXYVOSJEmSJElSuAybkiRJkiRJksJl2JQkSZIkSZIULsOmJEmSJEmSpHAZNiVJkiRJkiSFy7ApSZIkSZIkKVyGTUmSJEmSJEnhMmxKkiRJkiRJCpdhU5IkSZIkSVK4DJuSJEmSJEmSwmXYlCRJkiRJkhSslP4X7LRR12Ozha8AAAAASUVORK5CYII=)\n", "\n", "다음과 같이 설정되어있으니 그대로 입력하면 된다.\n", "\n", "USERNAME : qwer\n", "\n", "PASSWORD : asdf\n", "\n", "\"제출\" 클릭하면 WebUi가 실행된다." ], "metadata": { "id": "3FkXcvrnLm7U" } }, { "cell_type": "markdown", "source": [ "(5. 이미지를 드라이브에 저장) 항목은\n", "\n", "사용자의 구글 드라이브를 마운트 시키고\n", "\n", "현재까지 나온 모든 출력 이미지를 구글 드라이브에 outputs 폴더로 저장시킨다." ], "metadata": { "id": "w_Dx2j2YLm7V" } }, { "cell_type": "markdown", "source": [ "# 1. 설치" ], "metadata": { "id": "Tyq40aap7r0L" } }, { "cell_type": "code", "source": [ "!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui" ], "metadata": { "id": "z0TlcFN07fcH" }, "execution_count": null, "outputs": [] }, { "cell_type": "code", "source": [ "%cd /content/stable-diffusion-webui\n", "!COMMANDLINE_ARGS=\"--exit\" REQS_FILE=\"requirements.txt\" python launch.py" ], "metadata": { "id": "bl6HN94k0BqY" }, "execution_count": null, "outputs": [] }, { "cell_type": "markdown", "source": [ "# 2. 설정" ], "metadata": { "id": "Vo74o-UikXbC" } }, { "cell_type": "code", "source": [ "#@title CONFIG\n", "Model_Select = \"Stable Diffusion\" #@param [\"Stable Diffusion\", \"Waifu Diffusion v1.2\", \"Waifu Diffusion v1.3\", \"Trinart step115000\", \"Trinart step95000\", \"Trinart step60000\", \"NSFW\", \"Merge-Set\", \"Waifu-NSFW merge (70:30)\", \"Trinart-NSFW merge (70:30)\", \"Gdrive Model\", \"Web Model\"]\n", "Gdirve_link = \"\" #@param {type:\"string\"}\n", "\n", "if Model_Select == \"Web Model\":\n", " Web_link = \"\" #@param {type:\"string\"}\n", "\n", "elif Model_Select == \"Waifu Diffusion v1.2\":\n", " Web_link = \"https://huggingface.co/asgjghkg/Model/resolve/main/wd-v1-2-full-ema-pruned.ckpt\"\n", "\n", "elif Model_Select == \"Waifu Diffusion v1.3\":\n", " Web_link = \"https://huggingface.co/hakurei/waifu-diffusion-v1-3/resolve/main/wd-v1-3-float32.ckpt\"\n", " \n", "elif Model_Select == \"Trinart step115000\":\n", " Web_link = \"https://huggingface.co/naclbit/trinart_stable_diffusion_v2/resolve/main/trinart2_step115000.ckpt\"\n", "\n", "elif Model_Select == \"Trinart step95000\":\n", " Web_link = \"https://huggingface.co/naclbit/trinart_stable_diffusion_v2/resolve/main/trinart2_step95000.ckpt\"\n", "\n", "elif Model_Select == \"Trinart step60000\":\n", " Web_link = \"https://huggingface.co/naclbit/trinart_stable_diffusion_v2/resolve/main/trinart2_step60000.ckpt\"\n", " \n", "elif Model_Select == \"NSFW\":\n", " Web_link = \"https://huggingface.co/asgjghkg/Model/resolve/main/last-pruned.ckpt\"\n", "\n", "elif Model_Select == \"Waifu-NSFW merge (70:30)\":\n", " Web_link = \"https://huggingface.co/asgjghkg/Model/resolve/main/Waifu70_NSFW30_merge.ckpt\"\n", "\n", "elif Model_Select == \"Trinart-NSFW merge (70:30)\":\n", " Web_link = \"https://huggingface.co/asgjghkg/Model/resolve/main/Trin70_NSFW30_merge.ckpt\"" ], "metadata": { "id": "9Wgdt3NIdbd4", "cellView": "form" }, "execution_count": null, "outputs": [] }, { "cell_type": "markdown", "metadata": { "id": "ESHHngVYkbYt" }, "source": [ "# 3. 모델 설치" ] }, { "cell_type": "code", "source": [ "path = \"/content/stable-diffusion-webui/models/Stable-diffusion/\"\n", "\n", "%cd {path}\n", "\n", "if Model_Select == \"Merge-Set\":\n", " user_token = \"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\"\n", " user_header = f\"\\\"Authorization: Bearer {user_token}\\\"\"\n", " !wget --header={user_header} \"https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt\"\n", " !wget --header={user_header} \"https://huggingface.co/asgjghkg/Model/resolve/main/wd-v1-2-full-ema-pruned.ckpt\"\n", " !wget --header={user_header} \"https://huggingface.co/naclbit/trinart_stable_diffusion_v2/resolve/main/trinart2_step115000.ckpt\" \n", " !wget --header={user_header} \"https://huggingface.co/asgjghkg/Model/resolve/main/last-pruned.ckpt\" \n", "\n", "elif Model_Select == \"Gdrive Model\":\n", " !gdown \"https://drive.google.com/uc?id={Gdirve_link}\" -O {path}\n", "\n", "else:\n", " user_token = \"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\"\n", " user_header = f\"\\\"Authorization: Bearer {user_token}\\\"\"\n", " !wget --header={user_header} {Web_link}" ], "metadata": { "id": "h58h2ryQkjhL" }, "execution_count": null, "outputs": [] }, { "cell_type": "code", "source": [ "%cd /content/stable-diffusion-webui\n", "!git pull" ], "metadata": { "id": "Zx9yMWU30D9R" }, "execution_count": null, "outputs": [] }, { "cell_type": "markdown", "source": [ "# 4. DiffusionUI 시작" ], "metadata": { "id": "DpZYtlv1w-2F" } }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "hnjW0AQ318fE" }, "outputs": [], "source": [ "!COMMANDLINE_ARGS=\"--share --gradio-debug --gradio-auth qwer:asdf\" REQS_FILE=\"requirements.txt\" python launch.py" ] }, { "cell_type": "markdown", "metadata": { "id": "9qrpRUJpno7L" }, "source": [ "# 5. 이미지를 드라이브에 저장" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "gBt5g_Dn0NFo" }, "outputs": [], "source": [ "!zip -r /content/stable-diffusion-webui /content/stable-diffusion-webui/outputs " ] }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "zNEgJfbhDwI6" }, "outputs": [], "source": [ "from google.colab import drive # type: ignore\n", "\n", "try:\n", " drive_path = \"/content/drive\"\n", " drive.mount(drive_path,force_remount=False)\n", "except:\n", " print(\"...error mounting drive or with drive path variables\")\n", "\n", "!cp -r \"/content/stable-diffusion-webui/outputs\" \"/content/drive/MyDrive\"" ] } ], "metadata": { "accelerator": "GPU", "colab": { "collapsed_sections": [ "Tyq40aap7r0L", "ESHHngVYkbYt", "DpZYtlv1w-2F", "9qrpRUJpno7L" ], "provenance": [] }, "gpuClass": "standard", "kernelspec": { "display_name": "Python 3", "name": "python3" }, "language_info": { "name": "python" } }, "nbformat": 4, "nbformat_minor": 0 }