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.5-medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/stable-diffusion-3.5-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.5-medium") - Keras
How to use zeromodels/stable-diffusion-3.5-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.5-medium") - Notebooks
- Google Colab
- Kaggle
Add the attribution notice and the modification statement to the model card
Browse files
README.md
CHANGED
|
@@ -28,6 +28,8 @@ tags:
|
|
| 28 |
|
| 29 |
[](https://github.com/IMvision12/ZeroModels) [](https://imvision12.github.io/ZeroModels/stable_diffusion_3_5/) [](https://huggingface.co/collections/zeromodels/stable-diffusion-v35-6aa7963880e76656e5646ffc)
|
| 30 |
|
|
|
|
|
|
|
| 31 |
# zeromodels/stable-diffusion-3.5-medium
|
| 32 |
|
| 33 |
Paper: [Scaling Rectified Flow Transformers for High-Resolution Image Synthesis (arXiv:2403.03206)](https://arxiv.org/abs/2403.03206) | [HF Papers](https://huggingface.co/papers/2403.03206)
|
|
@@ -116,9 +118,22 @@ Load any Stable Diffusion 3.5 checkpoint the same way with `from_weights("zeromo
|
|
| 116 |
|
| 117 |
## License
|
| 118 |
|
| 119 |
-
The weights are redistributed under the
|
| 120 |
-
|
| 121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
|
| 123 |
## Special Thanks
|
| 124 |
|
|
|
|
| 28 |
|
| 29 |
[](https://github.com/IMvision12/ZeroModels) [](https://imvision12.github.io/ZeroModels/stable_diffusion_3_5/) [](https://huggingface.co/collections/zeromodels/stable-diffusion-v35-6aa7963880e76656e5646ffc)
|
| 30 |
|
| 31 |
+
**Powered by Stability AI**
|
| 32 |
+
|
| 33 |
# zeromodels/stable-diffusion-3.5-medium
|
| 34 |
|
| 35 |
Paper: [Scaling Rectified Flow Transformers for High-Resolution Image Synthesis (arXiv:2403.03206)](https://arxiv.org/abs/2403.03206) | [HF Papers](https://huggingface.co/papers/2403.03206)
|
|
|
|
| 118 |
|
| 119 |
## License
|
| 120 |
|
| 121 |
+
The weights are redistributed under the [Stability AI Community License](https://huggingface.co/stabilityai/stable-diffusion-3.5-medium/blob/main/LICENSE.md) of the upstream
|
| 122 |
+
checkpoint, including its use-based restrictions. By using them you agree to those terms.
|
| 123 |
+
|
| 124 |
+
## Notice
|
| 125 |
+
|
| 126 |
+
This Stability AI Model is licensed under the Stability AI Community License, Copyright © Stability AI Ltd. All Rights Reserved
|
| 127 |
+
|
| 128 |
+
Modifications by zeromodels (https://github.com/IMvision12/ZeroModels): the checkpoint
|
| 129 |
+
released at https://huggingface.co/stabilityai/stable-diffusion-3.5-medium was converted to
|
| 130 |
+
the Keras 3 weights layout of zeromodels (`model.weights.json, model_00000.weights.h5,
|
| 131 |
+
model_00001.weights.h5, zm_config.json, tokenizer.json, tokenizer_3.json`), stored in
|
| 132 |
+
float16, the upstream fp16 files, with the VAE in float32. The model architecture and the
|
| 133 |
+
parameter values are unchanged; the weight names and the file format differ from the
|
| 134 |
+
release.
|
| 135 |
+
|
| 136 |
+
**Powered by Stability AI**
|
| 137 |
|
| 138 |
## Special Thanks
|
| 139 |
|