Skip to content

Commit 305ad72

Browse files
committed
v2.0 - use diffusers by default
1 parent cc290fc commit 305ad72

File tree

6 files changed

+14
-44
lines changed

6 files changed

+14
-44
lines changed

README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
[![Discord Server](https://img.shields.io/discord/1014774730907209781?label=Discord)](https://discord.com/invite/u9yhsFmEkB)
55

6-
*New: Stable Diffusion 2.1 is now supported!*
6+
*New: Stable Diffusion XL, ControlNets, LoRAs and Embeddings are now supported!*
77

88
This is a community project, so please feel free to contribute (and use in your project)!
99

1010
![t2i](https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/assets/stable-samples/txt2img/768/merged-0006.png)
1111

1212
# Why?
13-
The goal is to let you be productive quickly (at your AI art project), so it bundles Stable Diffusion along with commonly-used features (like GFPGAN and CodeFormer for face restoration, RealESRGAN for upscaling, k-samplers, support for loading custom VAEs and hypernetworks, NSFW filter etc).
13+
The goal is to let you be productive quickly (at your AI art project), so it bundles Stable Diffusion along with commonly-used features (like ControlNets, LoRAs, Textual Inversion Embeddings, GFPGAN and CodeFormer for face restoration, RealESRGAN for upscaling, k-samplers, support for loading custom VAEs, NSFW filter etc).
1414

1515
Advanced features include a model-downloader (with a database of commonly used models), support for running in parallel on multiple GPUs, auto-scanning for malicious models etc. [Full list of features](https://github.com/easydiffusion/sdkit/wiki/Features)
1616

@@ -67,7 +67,7 @@ images = generate_images(context, prompt='Photograph of an astronaut riding a ho
6767
save_images(images, dir_path='D:\\path\\to\\images\\directory')
6868
```
6969

70-
Please see the list of [examples](https://github.com/easydiffusion/sdkit/tree/main/examples), to learn how to use the other features (like filters, VAE, Hypernetworks, memory optimizations, running on multiple GPUs etc).
70+
Please see the list of [examples](https://github.com/easydiffusion/sdkit/tree/main/examples), to learn how to use the other features (like filters, VAE, ControlNet, Embeddings, LoRA, memory optimizations, running on multiple GPUs etc).
7171

7272
# API
7373
Please see the [API Reference](https://github.com/easydiffusion/sdkit/wiki/API) page for a detailed summary.
@@ -96,9 +96,9 @@ For models that don't match a known hash (e.g. custom models), or if you want to
9696
## Does it have all the cool features?
9797
It has a lot of features! It was born out of a popular Stable Diffusion UI, splitting out the battle-tested core engine into `sdkit`.
9898

99-
**Features include:** SD 2.1, txt2img, img2img, inpainting, NSFW filter, multiple GPU support, Mac Support, GFPGAN and CodeFormer (fix faces), RealESRGAN (upscale), 19 samplers (including k-samplers and UniPC), custom VAE, custom hypernetworks, low-memory optimizations, model merging, safetensor support, picklescan, etc. [Click here to see the full list of features](https://github.com/easydiffusion/sdkit/wiki/Features).
99+
**Features include:** SD 2.1, SDXL, ControlNet, LoRAs, Embeddings, txt2img, img2img, inpainting, NSFW filter, multiple GPU support, Mac Support, GFPGAN and CodeFormer (fix faces), RealESRGAN (upscale), 16 samplers (including k-samplers and UniPC), custom VAE, low-memory optimizations, model merging, safetensor support, picklescan, etc. [Click here to see the full list of features](https://github.com/easydiffusion/sdkit/wiki/Features).
100100

101-
📢 We're looking to add support for *textual inversion embeddings*, *AMD support*, *ControlNet*, *Pix2Pix*, and *outpainting*. We'd love code contributions for these!
101+
📢 We're looking to add support for *Lycoris*, *AMD*, *Pix2Pix*, and *outpainting*. We'd love code contributions for these!
102102

103103
## Is it fast?
104104
It is pretty fast, and close to the fastest. For the same image, `sdkit` took 5.5 seconds, while `automatic1111` webui took 4.95 seconds. 📢 We're looking for code contributions to make `sdkit` even faster!
@@ -119,10 +119,10 @@ No xformers. No VRAM optimizations for low-memory usage.
119119
## Does it work on lower-end GPUs, or without GPUs?
120120
Yes. It works on NVIDIA/Mac GPUs with atleast 2GB of VRAM. For PCs without a compatible GPU, it can run entirely on the CPU. Running on the CPU will be *very* slow, but atleast you'll be able to try it out!
121121

122-
📢 We don't support AMD yet (it'll run in CPU-mode), but we're looking for code contributions for AMD support!
122+
📢 We don't support AMD yet on Windows (it'll run in CPU-mode, or in Linux), but we're looking for code contributions for AMD support!
123123

124124
## Why not just use diffusers?
125-
You can certainly use diffusers. `sdkit` is infact using `diffusers` internally (currently in beta), so you can think of `sdkit` as a convenient API and a collection of tools, focused on Stable Diffusion projects.
125+
You can certainly use diffusers. `sdkit` is infact using `diffusers` internally, so you can think of `sdkit` as a convenient API and a collection of tools, focused on Stable Diffusion projects.
126126

127127
`sdkit`:
128128
1. is a simple, lightweight toolkit for Stable Diffusion projects.
@@ -132,11 +132,11 @@ You can certainly use diffusers. `sdkit` is infact using `diffusers` internally
132132
5. built-in support for running on multiple GPUs.
133133
6. can download models from any server.
134134
7. auto-scans for malicious models.
135-
8. includes 19 samplers (including k-samplers).
135+
8. includes 16 samplers (including k-samplers).
136136
9. born out of the needs of the new Stable Diffusion AI Art scene, starting Aug 2022.
137137

138138
# Who is using sdkit?
139-
* [Easy Diffusion (cmdr2 UI)](https://github.com/cmdr2/stable-diffusion-ui) for Stable Diffusion.
139+
* [Easy Diffusion (cmdr2 UI)](https://github.com/easydiffusion/easydiffusion) for Stable Diffusion.
140140
* [Arthemy AI](https://arthemy.ai/)
141141

142142
If your project is using sdkit, you can add it to this list. Please feel free to open a pull request (or let us know at our [Discord community](https://discord.com/invite/u9yhsFmEkB)).
@@ -145,9 +145,8 @@ If your project is using sdkit, you can add it to this list. Please feel free to
145145
We'd love to accept code contributions. Please feel free to drop by our [Discord community](https://discord.com/invite/u9yhsFmEkB)!
146146

147147
📢 We're looking for code contributions for these features (or anything else you'd like to work on):
148-
- Using custom Textual Inversion embeddings.
148+
- Lycoris.
149149
- Outpainting.
150-
- ControlNet.
151150
- Pix2Pix.
152151
- AMD support.
153152

@@ -161,7 +160,7 @@ Instructions for running automated tests: [Running Tests](tests/README.md).
161160
* GFPGAN: https://github.com/TencentARC/GFPGAN
162161
* RealESRGAN: https://github.com/xinntao/Real-ESRGAN
163162
* k-diffusion: https://github.com/crowsonkb/k-diffusion
164-
* Code contributors and artists on the cmdr2 UI: https://github.com/cmdr2/stable-diffusion-ui and Discord (https://discord.com/invite/u9yhsFmEkB)
163+
* Code contributors and artists on Easy Diffusion (cmdr2 UI): https://github.com/easydiffusion/easydiffusion and Discord (https://discord.com/invite/u9yhsFmEkB)
165164
* Lots of contributors on the internet
166165

167166
# Disclaimer

examples/005-generate-custom_hypernetwork.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/008-generate-custom_lora.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from sdkit.utils import log, save_images
55

66
context = sdkit.Context()
7-
context.test_diffusers = True
87

98
# set the path to the model and LoRA file on the disk
109
context.model_paths["lora"] = "D:\\path\\to\\lora.safetensors"

examples/009-generate-controlnet.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from PIL import Image
77

88
context = sdkit.Context()
9-
context.test_diffusers = True
109

1110

1211
# convert an existing image into an openpose image (or skip these lines if you have a custom openpose image)

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "sdkit"
7-
version = "1.0.185"
7+
version = "2.0.0"
88
authors = [
99
{name="cmdr2", email="[email protected]"},
1010
]
11-
description = "sdkit (stable diffusion kit) is an easy-to-use library for using Stable Diffusion in your AI Art projects. It is fast, feature-packed, and memory-efficient. It bundles Stable Diffusion along with commonly-used features (like GFPGAN, RealESRGAN, k-samplers, custom VAE, hypernetworks etc). It also includes a model-downloader with a database of commonly used models, and advanced features like running in parallel on multiple GPUs, auto-scanning for malicious models etc. Supports Stable Diffusion 2.1!"
11+
description = "sdkit (stable diffusion kit) is an easy-to-use library for using Stable Diffusion in your AI Art projects. It is fast, feature-packed, and memory-efficient. It bundles Stable Diffusion along with commonly-used features (like ControlNet, LoRA, Textual Inversion Embeddings, GFPGAN, RealESRGAN, k-samplers, custom VAE etc). It also includes a model-downloader with a database of commonly used models, and advanced features like running in parallel on multiple GPUs, auto-scanning for malicious models etc. Supports Stable Diffusion XL, ControlNet, LoRA, Embeddings!"
1212
readme = "README.md"
1313
requires-python = ">=3.8.5"
1414
classifiers = [

sdkit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self) -> None:
3636
"""
3737
self.vram_usage_level = "balanced"
3838

39-
self.test_diffusers = False
39+
self.test_diffusers = True
4040
self.enable_codeformer = False
4141
"""
4242
Enable this to use CodeFormer.

0 commit comments

Comments
 (0)