-
-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fb1f61
commit 0f7fcc6
Showing
3 changed files
with
257 additions
and
57 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"id": "sBbcB4vwj_jm" | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"!curl -Lo memfix.zip https://github.com/nolanaatama/sd-webui/raw/main/memfix.zip\n", | ||
"!unzip /content/memfix.zip\n", | ||
"!apt install -qq libunwind8-dev\n", | ||
"!dpkg -i *.deb\n", | ||
"%env LD_PRELOAD=libtcmalloc.so\n", | ||
"!rm *\n", | ||
"!pip install --upgrade fastapi==0.90.1\n", | ||
"!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui\n", | ||
"!git clone https://github.com/nolanaatama/sd-webui-tunnels /content/stable-diffusion-webui/extensions/sd-webui-tunnels\n", | ||
"!git clone https://github.com/Mikubill/sd-webui-controlnet /content/stable-diffusion-webui/extensions/sd-webui-controlnet\n", | ||
"!git clone https://github.com/fkunn1326/openpose-editor /content/stable-diffusion-webui/extensions/openpose-editor\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", | ||
"# Model Code\n", | ||
"!curl -Lo /content/stable-diffusion-webui/models/Stable-diffusion/kotosmix.safetensors https://huggingface.co/nolanaatama/ktsmx/resolve/main/ktsmx.safetensors\n", | ||
"!curl -Lo /content/stable-diffusion-webui/models/Stable-diffusion/kotosmix.vae.pt https://huggingface.co/nolanaatama/ktsmx/resolve/main/ktsmx.vae.pt\n", | ||
"# ControlNet\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_canny.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_canny-fp16.safetensors\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_depth.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_depth-fp16.safetensors\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_hed-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_hed-fp16.safetensors\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_mlsd-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_mlsd-fp16.safetensors\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_normal-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_normal-fp16.safetensors\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_openpose-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_openpose-fp16.safetensors\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_scribble-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_scribble-fp16.safetensors\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_seg-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_seg-fp16.safetensors\n", | ||
"import shutil\n", | ||
"shutil.rmtree('/content/stable-diffusion-webui/embeddings')\n", | ||
"%cd /content/stable-diffusion-webui\n", | ||
"!git checkout 0cc0ee1\n", | ||
"!git clone https://huggingface.co/nolanaatama/embeddings\n", | ||
"# Web UI tunnel\n", | ||
"!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension- --gradio-queue --remotemoe\" REQS_FILE=\"requirements.txt\" python launch.py\n", | ||
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"source": [ | ||
"## (OPTIONAL) LoRAs" | ||
], | ||
"metadata": { | ||
"id": "0DwYF_aLUXKy" | ||
} | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"source": [ | ||
"### 1. After the gradio link show up, stop the first cell & clear the code output👆" | ||
], | ||
"metadata": { | ||
"id": "JUtPlg328avv" | ||
} | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"source": [ | ||
"### 2. Load the LoRA & launch the web ui" | ||
], | ||
"metadata": { | ||
"id": "xy_WyDzNUgd2" | ||
} | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"source": [ | ||
"# 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", | ||
"# How-to download the setup file: Click 'File' menu -> 'Download' -> 'Download .ipynb'\n", | ||
"# Load LoRA from Google Drive: https://youtu.be/G1QZfAPUMaM\n", | ||
"\n", | ||
"# LoRA 1\n", | ||
"#!curl ...\n", | ||
"\n", | ||
"# LoRA 2\n", | ||
"#!curl ...\n", | ||
"\n", | ||
"# LoRA 3\n", | ||
"#!curl ...\n", | ||
"\n", | ||
"# ...\n", | ||
"\n", | ||
"# Web UI tunnel\n", | ||
"!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension- --gradio-queue --remotemoe\" REQS_FILE=\"requirements.txt\" python launch.py\n", | ||
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel" | ||
], | ||
"metadata": { | ||
"id": "3EOPSiOgUs4z" | ||
}, | ||
"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 | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"id": "sBbcB4vwj_jm" | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"!curl -Lo memfix.zip https://github.com/nolanaatama/sd-webui/raw/main/memfix.zip\n", | ||
"!unzip /content/memfix.zip\n", | ||
"!apt install -qq libunwind8-dev\n", | ||
"!dpkg -i *.deb\n", | ||
"%env LD_PRELOAD=libtcmalloc.so\n", | ||
"!rm *\n", | ||
"!pip install --upgrade fastapi==0.90.1\n", | ||
"!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui\n", | ||
"!git clone https://github.com/nolanaatama/sd-webui-tunnels /content/stable-diffusion-webui/extensions/sd-webui-tunnels\n", | ||
"!git clone https://github.com/Mikubill/sd-webui-controlnet /content/stable-diffusion-webui/extensions/sd-webui-controlnet\n", | ||
"!git clone https://github.com/fkunn1326/openpose-editor /content/stable-diffusion-webui/extensions/openpose-editor\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", | ||
"# Model Code\n", | ||
"!curl -Lo /content/stable-diffusion-webui/models/Stable-diffusion/yesmix.safetensors https://huggingface.co/nolanaatama/ysmx/resolve/main/ysmx.safetensors\n", | ||
"# ControlNet\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_canny.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_canny-fp16.safetensors\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_depth.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_depth-fp16.safetensors\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_hed-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_hed-fp16.safetensors\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_mlsd-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_mlsd-fp16.safetensors\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_normal-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_normal-fp16.safetensors\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_openpose-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_openpose-fp16.safetensors\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_scribble-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_scribble-fp16.safetensors\n", | ||
"!curl -Lo /content/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_seg-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_seg-fp16.safetensors\n", | ||
"import shutil\n", | ||
"shutil.rmtree('/content/stable-diffusion-webui/embeddings')\n", | ||
"%cd /content/stable-diffusion-webui\n", | ||
"!git checkout 0cc0ee1\n", | ||
"!git clone https://huggingface.co/nolanaatama/embeddings\n", | ||
"# Web UI tunnel\n", | ||
"!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension- --gradio-queue --remotemoe\" REQS_FILE=\"requirements.txt\" python launch.py\n", | ||
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"source": [ | ||
"## (OPTIONAL) LoRAs" | ||
], | ||
"metadata": { | ||
"id": "0DwYF_aLUXKy" | ||
} | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"source": [ | ||
"### 1. After the gradio link show up, stop the first cell & clear the code output👆" | ||
], | ||
"metadata": { | ||
"id": "JUtPlg328avv" | ||
} | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"source": [ | ||
"### 2. Load the LoRA & launch the web ui" | ||
], | ||
"metadata": { | ||
"id": "xy_WyDzNUgd2" | ||
} | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"source": [ | ||
"# 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", | ||
"# How-to download the setup file: Click 'File' menu -> 'Download' -> 'Download .ipynb'\n", | ||
"# Load LoRA from Google Drive: https://youtu.be/G1QZfAPUMaM\n", | ||
"\n", | ||
"# LoRA 1\n", | ||
"#!curl ...\n", | ||
"\n", | ||
"# LoRA 2\n", | ||
"#!curl ...\n", | ||
"\n", | ||
"# LoRA 3\n", | ||
"#!curl ...\n", | ||
"\n", | ||
"# ...\n", | ||
"\n", | ||
"# Web UI tunnel\n", | ||
"!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension- --gradio-queue --remotemoe\" REQS_FILE=\"requirements.txt\" python launch.py\n", | ||
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel" | ||
], | ||
"metadata": { | ||
"id": "3EOPSiOgUs4z" | ||
}, | ||
"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 | ||
} |