/stable-diffusion-webui-ipynb

AUTOMATIC1111 Stable Diffusion WebUI 1.5 + Kohya's Scripts

Primary LanguageJupyter Notebook

AUTOMATIC1111 Stable Diffusion WebUI 1.5 + Kohya's Scripts

[Web UI] Go To Colab | [LoRA Train] Go To Colab | [Xformers Build] Go To Colab | Prompts Collection

Now the download script of "Recommended Loras" and "Recommended Checkpoints" has been built into the script (before startup), if you don't want to download it, you can disable them before startup.

Most of the models are the latest versions from CivitAI, but some LoRA models are marked with special versions, which are versions that I personally think are better. If you don't want to use this version, you may need to download other versions yourself (see below).

If you want to download other models, you can go to the CivitAI tab in WebUI to download it yourself (if you have checked the install Civitai Browser extension option). In addition, remember to check the Save to Additional Network option.

The script has already soft-linked the LoRA in Additional Network to the models/Lora folder, but when using WebUI to download LoRA, you need to manually soft-link it to the models/Stable-diffusion folder, or restart the program to refresh the soft link.

Warning: Please note that there may be legal risks before painting. Please note whether your painting may cause controversy and negative impact on the development of the AI community. Please use it with caution.

Roadmap

  • Paperspace Support (Not considered in the future)
  • Support for training LoRA Jupyter Notebook
  • Optimize model download speed with aria2
  • Internationalization
  • Provide xformer support for Paperspace M4000 GPU
  • Soft link LoRA in Additional Network to models/Stable-diffusion folder

Jupyter Notebook's Language is still Chinese, I want to find a way to make it internationalized, but maintaining two versions is a bit troublesome, so I will do it later.

About Training LoRA

Basic training script based on Akegarasu/lora-scripts which is based on kohya-ss/sd-scripts, but you can also use ddPn08/kohya-sd-scripts-webui which provides a GUI, it is more convenient, I also provide the corresponding SD WebUI extension installation method in stable_diffusion_1_5_webui.ipynb.

Some models are not compatible with the training script, and the training script will not be able to train them. If you want to train them, you need to use the training script provided by the model author.

In kohya-ss/sd-scripts train_network documentaion, it notes that the cloneofsimo's repository and the d8ahazard's Dreambooth Extension for Stable-Diffusion-WebUI are not compatible at the current time. This is because they have extended some features.

Recommended Loras

It seems that the LoRA related to @kbr has disappeared, and I don't know the reason. Currently, you can find it at https://github.com/wibus-wee/stable_diffusion_chilloutmix_ipynb/releases/tag/koreanDollLikeness, I have uploaded it to the release.

In addition, I have updated the startup script so that if you check install koreanDollLikeness, it will be installed automatically.

🌟 - Very good, very recommended.

πŸ‘ - Good, recommended.

πŸ†’ - Good.

Recommended Checkpoints

Recommended Textual Inversion

Experimental LoRA

Experimental LoRA refers to models that are not yet fully tested by me, and have not yet been determined to be compatible. If you want to use these models, please judge the compatibility with other LoRA by yourself.

Experimental Checkpoints

NoteBook Built-in Extension

WebUI Jupyter Notebook built-in Extension, you can install it directly from the notebook.

Build xformers from source

If you are using Google Colab, there are many precompiled wheels for you to choose from. If you are using something else or want to build from source, you can use this notebook to build the library.

I have written a notebook to build xformers from source. You can use it to build xformers for your own GPU.

CHANGELOG

2023.3.25

  • stable_diffusion_1_5_webui.ipynb
    • Use the wrong list to cause the Textual Inversion download to fail
    • Only soft link the model once, remove the !rm -rf stable_diffusion/model/Lora step to avoid accidentally deleting other models

2023.3.18

  • lora_train.ipynb
    • Language Internationalization
  • stable_diffusion_1_5_webui.ipynb

2023.3.8

  • README
    • Modify Chilled_re_generic_v2 link to Google Drive Share Link
    • Set Chilloutmixss model to deprecated (This model is disappeared.)
  • stable_diffusion_1_5_webui.ipynb
    • Remove Chilloutmixss model option
    • Use try-except to catch KeyError when downloading models.
    • Support download styles.csv with url.

2023.3.4

  • README
    • Add Chilled_re_generic_v2 download link
  • stable_diffusion_1_5_webui.ipynb
    • Support custom checkpoint name ( From custom url )

2023.3.5

  • stable_diffusion_1_5_webui.ipynb
    • Custom checkpoint version
    • Missing return value
    • API argument support
    • Fixed xformer not starting on M4000 GPU platforms with xformer installed
    • Support download multiple checkpoints at the same time
    • Support download checkpoints from other URLs

2023.3.4

  • stable_diffusion_1_5_webui.ipynb
    • Download koreanDollLikeness model with GitHub Release API
    • Soft link LoRA models so that they can be used in prompts and additional networks. (Only operate before startup, the LoRA installed after startup may not be used in prompts. You need to restart the application to re-link the models installed in other networks.)
    • Provides the option to install LoRA before startup
    • Get the latest checkpoint download address from the CivitAI API
    • Support for entering custom checkpoint id
    • Define download functions to optimize readability
    • Support LoRA specific version selection in download function
    • Auto detect download tool
    • Textual Inversion download function
  • README.md
    • Update "Experimental Checkpoints" and "Experimental LoRA" section
  • prompts.md
    • Add a new prompt Basic Tiara

2023.2.25

  • README.md
    • Update Experimental Lora List - Add ChilloutMixss
    • Optimize CHANGELOG format
    • Internationalize README
    • New "Textual Inversion" section
    • Add "NoteBook Built-in Extension" section
    • Add "Build xformers from source" section
  • lora_train.ipynb
    • Fix serious errors in LoRA training script
    • Remove unnecessary platform and GPU checks
    • Add export_model_dir option to specify the directory where the model is exported
    • Add an extra build installation xformers option for the M4000 GPU
    • Use ninja to build xformers much faster ( Followed by Official README)
  • stable_diffusion_1_5_webui.ipynb
    • Add an extra build installation xFormer option for the M4000 GPU
    • Use ninja to build xformers much faster ( Followed by Official README)
  • prompts.md
    • Internationalize
  • xformers_build.ipynb
    • New xformers build script
    • Switch xformers source version to 0.0.16
  • workflows
    • Add xformers_build.ipynb to Preview CI
    • Remove pull_request_target value to prevent the workflow from running twice
  • Release
    • Publish xformers precompiled wheels for M4000 GPU

2023.2.24

  • workflows
    • Automatically comment on Preview link when Pull Request ( wibus-wee#2 )
  • stable_diffusion_1_5_webui.ipynb
    • Install controlnet, openpose-editor, Kohya sd-scripts extension with Stable-Diffusion-WebUI
    • Remove the old training model installation scheme and merge it into the installation steps ( created in 2023.2.19 )
  • lora_train.ipynb
    • New Lora Train Script ( Alpha )

2023.2.21

  • stable_diffusion_1_5_webui.ipynb
    • Better option selection mechanism
    • Fine distinction between Paperspace and Colab platforms rather than relying on a single Free GPU model

2023.2.19

  • stable_diffusion_1_5_webui.ipynb
    • Fix the problem of incorrectly identifying the Quadro M4000 GPU
    • Add Training Model Installation Scheme ( Power by d8ahazard/sd_dreambooth_extension)
    • Optimize checkpoint selection
    • Fix the problem of not being able to read variables
    • Automatically check whether webUI and training extensions are installed

2023.2.18

  • stable_diffusion_1_5_webui.ipynb
    • Update the latest version of the upstream ChilloutMix
    • Update Prompts Collection
    • Compatible with Paperspace platform (Free GPU)
    • Export all generated images
    • Use nvidia-smi to view GPU information
    • Check if GPU supports Xformers
    • Optimize variable passing

2023.2.17

  • stable_diffusion_1_5_webui.ipynb
    • Add SunshineMix Checkpoint as a second choice for 2.5D painting

2023.2.16

  • stable_diffusion_1_5_webui.ipynb
    • Because there may be a sudden exit in the middle, there is another way to restart

Created by @wibus-wee

Reference: camenduru/stable-diffusion-webui-colab