Instructions to use keras/stable_diffusion_3.5_large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasHub
How to use keras/stable_diffusion_3.5_large with KerasHub:
import keras_hub # Load TextToImage model (optional: use half precision for inference) text_to_image = keras_hub.models.TextToImage.from_preset("hf://keras/stable_diffusion_3.5_large", dtype="bfloat16") # Generate images with a TextToImage model. text_to_image.generate("Astronaut in a jungle")import keras_hub # Create a ImageToImage model task = keras_hub.models.ImageToImage.from_preset("hf://keras/stable_diffusion_3.5_large")import keras_hub # Create a Inpaint model task = keras_hub.models.Inpaint.from_preset("hf://keras/stable_diffusion_3.5_large")import keras_hub # Create a Backbone model unspecialized for any task backbone = keras_hub.models.Backbone.from_preset("hf://keras/stable_diffusion_3.5_large") - Keras
How to use keras/stable_diffusion_3.5_large 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://keras/stable_diffusion_3.5_large") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload folder using huggingface_hub
Verified signatured3a2de1
-
Update README.md with new model card content
Verified signature91524eb
-
Upload folder using huggingface_hub
Verified signaturecb52f1a
-
Update README.md with new model card content
Verified signaturea3112c0
-
Update README.md
Verified signaturea959f10 -
Update README.md
Verified signature5247653
-
Update README.md with new model card content
Verified signature440fda7 -
Update README.md with new model card content
Verified signatureb547d81
-
Upload folder using huggingface_hub
Verified signature0275605 -
initial commit
Verified signature643aef2