Text-to-Image
ZeroModels
Keras
PyTorch
JAX
TensorFlow
English
stable-diffusion
stable-diffusion-3
sd3
mmdit
diffusion
rectified-flow
Instructions to use zeromodels/stable-diffusion-3-medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/stable-diffusion-3-medium with ZeroModels:
# pip install -U zeromodels # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" from zeromodels import AutoZModel # AutoZModel reads the repo's model_type and loads the matching class. # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect / # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto). model = AutoZModel.from_weights("zeromodels/stable-diffusion-3-medium") - Keras
How to use zeromodels/stable-diffusion-3-medium with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://zeromodels/stable-diffusion-3-medium") - Notebooks
- Google Colab
- Kaggle
Add the attribution notice and the modification statement to the model card
Browse files
README.md
CHANGED
|
@@ -114,9 +114,20 @@ Load any Stable Diffusion 3 checkpoint the same way with `from_weights("zeromode
|
|
| 114 |
|
| 115 |
## License
|
| 116 |
|
| 117 |
-
The weights are redistributed under the
|
| 118 |
-
|
| 119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
|
| 121 |
## Special Thanks
|
| 122 |
|
|
|
|
| 114 |
|
| 115 |
## License
|
| 116 |
|
| 117 |
+
The weights are redistributed under the [Stability AI Non-Commercial Research Community License](https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers/blob/main/LICENSE) of the upstream
|
| 118 |
+
checkpoint, including its use-based restrictions. By using them you agree to those terms.
|
| 119 |
+
|
| 120 |
+
## Notice
|
| 121 |
+
|
| 122 |
+
This Stability AI Model is licensed under the Stability AI Non-Commercial Research Community License, Copyright (c) Stability AI Ltd. All Rights Reserved.
|
| 123 |
+
|
| 124 |
+
Modifications by zeromodels (https://github.com/IMvision12/ZeroModels): the checkpoint
|
| 125 |
+
released at https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers was
|
| 126 |
+
converted to the Keras 3 weights layout of zeromodels (`model.weights.json,
|
| 127 |
+
model_00000.weights.h5, model_00001.weights.h5, zm_config.json, tokenizer.json,
|
| 128 |
+
tokenizer_3.json`), stored in float16, the upstream fp16 files, with the VAE in float32. The
|
| 129 |
+
model architecture and the parameter values are unchanged; the weight names and the file
|
| 130 |
+
format differ from the release.
|
| 131 |
|
| 132 |
## Special Thanks
|
| 133 |
|