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

  • Log In
  • Sign Up

philschmid
/
stable-diffusion-v1-4-endpoints

Text-to-Image
Diffusers
StableDiffusionPipeline
stable-diffusion
stable-diffusion-diffusers
endpoints-template
Model card Files Files and versions
xet
Community
4

Instructions to use philschmid/stable-diffusion-v1-4-endpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use philschmid/stable-diffusion-v1-4-endpoints with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("philschmid/stable-diffusion-v1-4-endpoints", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
stable-diffusion-v1-4-endpoints
2.74 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 12 commits
philschmid's picture
philschmid
julien-c's picture
julien-c HF Staff
Update API (#4)
5726ea9 verified almost 2 years ago
  • feature_extractor
    add handler over 3 years ago
  • safety_checker
    add handler over 3 years ago
  • scheduler
    Add `clip_sample=False` to scheduler to make model compatible with DDIM. (#1) over 3 years ago
  • text_encoder
    add handler over 3 years ago
  • tokenizer
    add handler over 3 years ago
  • unet
    add handler over 3 years ago
  • vae
    add handler over 3 years ago
  • .gitattributes
    1.34 kB
    add handler over 3 years ago
  • README.md
    2.22 kB
    Update README.md over 3 years ago
  • create_handler.ipynb
    6.1 kB
    Upload create_handler.ipynb over 3 years ago
  • handler.py
    1.1 kB
    Update API (#4) almost 2 years ago
  • model_index.json
    541 Bytes
    Fix deprecation warning by changing `CLIPFeatureExtractor` to `CLIPImageProcessor`. (#3) almost 3 years ago
  • requirements.txt
    17 Bytes
    Update requirements.txt over 3 years ago
  • sample.jpg
    48.5 kB
    add handler over 3 years ago