Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contact on [X](https://x.com/__TheBen) for highly advanced and optimized flux(dev, krea, kontext) trainer or SDXL colab trainer (paid)

# fast-stable-diffusion Notebooks, ComfyUI + A1111 + DreamBooth
# fast-stable-diffusion Notebooks, ComfyUI + A1111 + ReForge + DreamBooth

<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Colab-ComfyUI&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Colab-AUTOMATIC1111&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Colab-Dreambooth<br></a><a href="https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_ComfyUI.ipynb"><img src='https://github.com/TheLastBen/fast-stable-diffusion/raw/main/Dreambooth/2.png'></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb"><img src='https://github.com/TheLastBen/fast-stable-diffusion/raw/main/Dreambooth/1.jpg'></a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a><a href="https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast-DreamBooth.ipynb"><img src='https://github.com/TheLastBen/fast-stable-diffusion/raw/main/Dreambooth/4.jpg'>
Expand Down
29 changes: 24 additions & 5 deletions fast_stable_diffusion_AUTOMATIC1111.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"outputs": [],
"source": [
"#@markdown # Install/Update AUTOMATIC1111 repo\n",
"#@markdown # Install/Update AUTOMATIC1111, mix1009, DominikDoom, AlUlkesh and DenOfEquity repos\n",
"from IPython.utils import capture\n",
"from IPython.display import clear_output\n",
"from subprocess import getoutput\n",
Expand Down Expand Up @@ -93,6 +93,10 @@
" os.environ['TORCH_HOME'] = f\"/content/gdrive/{mainpth}/sd/stable-diffusion-w\"+blsaphemy+\"/cache\"\n",
" !mkdir -p /content/gdrive/$mainpth/sd/stable-diffusion-w$blsaphemy/repositories\n",
" !git clone https://github.com/AUTOMATIC1111/stable-diffusion-w$blsaphemy-assets /content/gdrive/$mainpth/sd/stable-diffusion-w$blsaphemy/repositories/stable-diffusion-webui-assets\n",
" !git clone -b neg https://github.com/DenOfEquity/webUI_ExtraSchedulers.git /content/gdrive/$mainpth/sd/stable-diffusion-w$blsaphemy/extensions/webUI_ExtraSchedulers\n",
" !git clone https://github.com/mix1009/model-keyword.git /content/gdrive/$mainpth/sd/stable-diffusion-w$blsaphemy/extensions/model-keyword\n",
" !git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git /content/gdrive/$mainpth/sd/stable-diffusion-w$blsaphemy/extensions/a1111-sd-webui-tagcomplete\n",
" !git clone https://github.com/AlUlkesh/stable-diffusion-webui-images-browser.git /content/gdrive/$mainpth/sd/stable-diffusion-w$blsaphemy/extensions/stable-diffusion-webui-images-browser\n",
"\n",
"with capture.capture_output() as cap:\n",
" %cd /content/gdrive/$mainpth/sd/stable-diffusion-w$blsaphemy/\n",
Expand Down Expand Up @@ -153,6 +157,8 @@
" !sed -i 's@from .mailbox import ContextCancelledError@@g' /usr/local/lib/python3.12/dist-packages/wandb/sdk/lib/retry.py\n",
" !sed -i 's@raise ContextCancelledError(\"retry timeout\")@print(\"retry timeout\")@g' /usr/local/lib/python3.12/dist-packages/wandb/sdk/lib/retry.py\n",
" !sed -i 's@globalns, localns, set()@globalns, localns, recursive_guard=set()@g' /usr/local/lib/python3.12/dist-packages/pydantic/typing.py\n",
" !pip install Pillow==9.5.0\n",
" !pip install protobuf==3.20.3\n",
"\n",
"clear_output()\n",
"inf('\\u2714 Done','success', '50px')\n",
Expand Down Expand Up @@ -427,7 +433,7 @@
"import re\n",
"from subprocess import run\n",
"\n",
"XL_Model = \"None\" #@param [ \"None\", \"All\", \"Canny\", \"Depth\", \"Sketch\", \"OpenPose\", \"Recolor\"]\n",
"XL_Model = \"None\" #@param [ \"None\", \"All\", \"Canny\", \"Depth\", \"Sketch\", \"OpenPose\", \"Recolor\", \"Illustrious01Canny\", \"Illustrious01DepthMidas\", \"Illustrious01Inpainting\", \"Illustrious01Lineart\", \"Illustrious01Softedge\", \"Illustrious01Tile\", \"Illustrious01OpenPose\", \"Illustrious11Canny\", \"Illustrious11DepthMidas\", \"Illustrious11Inpainting\", \"Illustrious11Tile\", \"NoobOpenPose\", \"NoobInpainting\"]\n",
"\n",
"v1_Model = \"None\" #@param [ \"None\", \"All (21GB)\", \"Canny\", \"Depth\", \"Lineart\", \"MLSD\", \"Normal\", \"OpenPose\", \"Scribble\", \"Seg\", \"ip2p\", \"Shuffle\", \"Inpaint\", \"Softedge\", \"Lineart_Anime\", \"Tile\", \"T2iadapter_Models\"]\n",
"\n",
Expand All @@ -451,6 +457,19 @@
"Sketch='https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_sketch_256lora.safetensors'\n",
"OpenPose='https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/thibaud_xl_openpose_256lora.safetensors'\n",
"Recolor='https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_recolor_128lora.safetensors'\n",
"Illustrious01Canny='https://huggingface.co/MIC-Lab/illustriousXLv0.1_controlnet/resolve/main/illustriousXLv0.1_Canny_fp16.safetensors'\n",
"Illustrious01DepthMidas='https://huggingface.co/MIC-Lab/illustriousXLv0.1_controlnet/resolve/main/illustriousXLv0.1_depth_midas_fp16.safetensors'\n",
"Illustrious01Inpainting='https://huggingface.co/MIC-Lab/illustriousXLv0.1_controlnet/resolve/main/illustriousXLv0.1_inpainting_fp16.safetensors'\n",
"Illustrious01Lineart='https://huggingface.co/MIC-Lab/illustriousXLv0.1_controlnet/resolve/main/illustriousXLv0.1_Lineart_fp16.safetensors'\n",
"Illustrious01Softedge='https://huggingface.co/MIC-Lab/illustriousXLv0.1_controlnet/resolve/main/illustriousXLv0.1_Softedge_fp16.safetensors'\n",
"Illustrious01Tile='https://huggingface.co/MIC-Lab/illustriousXLv0.1_controlnet/resolve/main/illustriousXLv0.1_Tile_fp16.safetensors'\n",
"Illustrious01OpenPose='https://huggingface.co/windsingai/Illustrious-XL-openpose-test/resolve/main/openpose_s6000.safetensors'\n",
"Illustrious11Canny='https://huggingface.co/MIC-Lab/illustriousXLv1.1_controlnet/resolve/main/illustriousXLv1.1_canny_fp16.safetensors'\n",
"Illustrious11DepthMidas='https://huggingface.co/MIC-Lab/illustriousXLv1.1_controlnet/resolve/main/illustriousXLv1.1_depth_midas_fp16.safetensors'\n",
"Illustrious11Inpainting='https://huggingface.co/MIC-Lab/illustriousXLv1.1_controlnet/resolve/main/illustriousXLv1.1_inpainting_fp16.safetensors'\n",
"Illustrious11Tile='https://huggingface.co/MIC-Lab/illustriousXLv1.1_controlnet/resolve/main/illustriousXLv1.1_tile_fp16.safetensors'\n",
"NoobOpenPose='https://huggingface.co/Laxhar/noob_openpose/resolve/main/openpose_pre.safetensors'\n",
"NoobInpainting='https://huggingface.co/Wenaka/NoobAI_XL_Inpainting_ControlNet_Full/resolve/main/NoobAI_Inpainting_ControlNet.safetensors'\n",
"\n",
"\n",
"with capture.capture_output() as cap:\n",
Expand Down Expand Up @@ -644,11 +663,11 @@
"try:\n",
" model\n",
" if os.path.isfile(model):\n",
" !python /content/gdrive/$mainpth/sd/stable-diffusion-w$blsaphemy/webui.py $share --api --disable-safe-unpickle --enable-insecure-extension-access --no-download-sd-model --no-half-vae --ckpt \"$model\" --xformers $auth --disable-console-progressbars --skip-version-check $ckptdir\n",
" !python /content/gdrive/$mainpth/sd/stable-diffusion-w$blsaphemy/webui.py $share --api --disable-safe-unpickle --enable-insecure-extension-access --no-download-sd-model --disable-nan-check --no-half-vae --ckpt \"$model\" --xformers $auth --disable-console-progressbars --skip-version-check $ckptdir\n",
" else:\n",
" !python /content/gdrive/$mainpth/sd/stable-diffusion-w$blsaphemy/webui.py $share --api --disable-safe-unpickle --enable-insecure-extension-access --no-download-sd-model --no-half-vae --ckpt-dir \"$model\" --xformers $auth --disable-console-progressbars --skip-version-check\n",
" !python /content/gdrive/$mainpth/sd/stable-diffusion-w$blsaphemy/webui.py $share --api --disable-safe-unpickle --enable-insecure-extension-access --no-download-sd-model --disable-nan-check --no-half-vae --ckpt-dir \"$model\" --xformers $auth --disable-console-progressbars --skip-version-check\n",
"except:\n",
" !python /content/gdrive/$mainpth/sd/stable-diffusion-w$blsaphemy/webui.py $share --api --disable-safe-unpickle --enable-insecure-extension-access --no-download-sd-model --no-half-vae --xformers $auth --disable-console-progressbars --skip-version-check $ckptdir"
" !python /content/gdrive/$mainpth/sd/stable-diffusion-w$blsaphemy/webui.py $share --api --disable-safe-unpickle --enable-insecure-extension-access --no-download-sd-model --disable-nan-check --no-half-vae --xformers $auth --disable-console-progressbars --skip-version-check $ckptdir"
]
}
],
Expand Down
Loading