Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

keras
/
stable_diffusion_3_medium

Text-to-Image
KerasHub
Keras
image-to-image
Model card Files Files and versions
xet
Community

Instructions to use keras/stable_diffusion_3_medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • KerasHub

    How to use keras/stable_diffusion_3_medium 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_medium", 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_medium")
    
    import keras_hub
    
    # Create a Inpaint model
    task = keras_hub.models.Inpaint.from_preset("hf://keras/stable_diffusion_3_medium")
    
    import keras_hub
    
    # Create a Backbone model unspecialized for any task
    backbone = keras_hub.models.Backbone.from_preset("hf://keras/stable_diffusion_3_medium")
    
  • Keras

    How to use keras/stable_diffusion_3_medium with Keras:

    # Available backend options are: "jax", "torch", "tensorflow".
    import os
    os.environ["KERAS_BACKEND"] = "jax"
    
    import keras
    
    model = keras.saving.load_model("hf://keras/stable_diffusion_3_medium")
    
  • Notebooks
  • Google Colab
  • Kaggle
stable_diffusion_3_medium
5.98 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 9 commits

This model has 6 files scanned as unsafe.

prasadsachin's picture
prasadsachin
Upload folder using huggingface_hub
5648b46 verified 6 months ago
  • assets
    Upload folder using huggingface_hub over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    9.66 kB
    Update README.md with new model card content about 1 year ago
  • clip_g_preprocessor.json
    1.4 kB
    Upload folder using huggingface_hub over 1 year ago
  • clip_g_tokenizer.json
    592 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • clip_l_preprocessor.json
    1.4 kB
    Upload folder using huggingface_hub over 1 year ago
  • clip_l_tokenizer.json
    591 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • config.json
    4.29 kB
    Upload folder using huggingface_hub 6 months ago
  • metadata.json
    236 Bytes
    Upload folder using huggingface_hub 6 months ago
  • model.weights.h5
    5.98 GB
    xet
    Upload folder using huggingface_hub 6 months ago
  • preprocessor.json
    4.18 kB
    Upload folder using huggingface_hub over 1 year ago