Last active
December 18, 2022 05:23
-
-
Save u-haru/63514d82edf284574a69fd971aec6109 to your computer and use it in GitHub Desktop.
63514d82edf284574a69fd971aec6109
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nbformat": 4, | |
"nbformat_minor": 0, | |
"metadata": { | |
"colab": { | |
"provenance": [], | |
"include_colab_link": true | |
}, | |
"kernelspec": { | |
"name": "python3", | |
"display_name": "Python 3" | |
}, | |
"language_info": { | |
"name": "python" | |
}, | |
"accelerator": "GPU", | |
"gpuClass": "standard" | |
}, | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "view-in-github", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"<a href=\"https://colab.research.google.com/gist/u-haru/63514d82edf284574a69fd971aec6109/webui.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": { | |
"id": "3E5qKyRkkDzR" | |
}, | |
"outputs": [], | |
"source": [ | |
"#@title Initialize(Run every time)\n", | |
"from google.colab import drive\n", | |
"drive.mount('/content/drive')" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"#@title Installation(Run only once)\n", | |
"!mkdir -p \"/content/drive/MyDrive/Colab Notebooks/SD-WebUI\"\n", | |
"%cd \"/content/drive/MyDrive/Colab Notebooks/SD-WebUI\"\n", | |
"!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui" | |
], | |
"metadata": { | |
"id": "r6Y18jlfkQcJ" | |
}, | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"#@title Download model(Run only once)\n", | |
"%cd \"/content/drive/MyDrive/Colab Notebooks/SD-WebUI/stable-diffusion-webui/models/Stable-diffusion\"\n", | |
"!curl -L \"https://huggingface.co/Linaqruf/anything-v3.0/resolve/main/Anything-V3.0-pruned.ckpt\" -o \"Anything-V3.0-pruned.ckpt\"\n", | |
"!curl -L \"https://huggingface.co/Linaqruf/anything-v3.0/resolve/main/Anything-V3.0.vae.pt\" -o \"Anything-V3.0-pruned.vae.pt\"" | |
], | |
"metadata": { | |
"id": "S3ISq7EfmWGM" | |
}, | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"#@title Update\n", | |
"%cd \"/content/drive/MyDrive/Colab Notebooks/SD-WebUI/stable-diffusion-webui\"\n", | |
"!git pull" | |
], | |
"metadata": { | |
"id": "hczIsRApnVlO" | |
}, | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"#@title RUN!!!\n", | |
"%cd \"/content/drive/MyDrive/Colab Notebooks/SD-WebUI/stable-diffusion-webui\"\n", | |
"!COMMANDLINE_ARGS=\"--share --gradio-debug --gradio-auth haru:haru --deepdanbooru --enable-insecure-extension-access\" REQS_FILE=\"requirements.txt\" python launch.py" | |
], | |
"metadata": { | |
"id": "FYZI6ZXylv5X" | |
}, | |
"execution_count": null, | |
"outputs": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment