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

  • Log In
  • Sign Up

ttj
/
flex-diffusion-2-1

Text-to-Image
Diffusers
Safetensors
StableDiffusionPipeline
stable-diffusion
Model card Files Files and versions
xet
Community
1

Instructions to use ttj/flex-diffusion-2-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use ttj/flex-diffusion-2-1 with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("ttj/flex-diffusion-2-1", 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
flex-diffusion-2-1
Ctrl+K
Ctrl+K
  • 2 contributors
History: 8 commits
Jonathan Chang
Add safetensor weight for 2-1
5a0cff8 unverified over 3 years ago
  • 2-1
    Add safetensor weight for 2-1 over 3 years ago
  • 2-base
    Add 2-base safetensor over 3 years ago
  • imgs
    Add examples over 3 years ago
  • scheduler
    Add safetensor full weight for 2-1 over 3 years ago
  • text_encoder
    Add safetensor full weight for 2-1 over 3 years ago
  • tokenizer
    Add safetensor full weight for 2-1 over 3 years ago
  • unet
    Add safetensor full weight for 2-1 over 3 years ago
  • vae
    Add safetensor full weight for 2-1 over 3 years ago
  • .gitattributes
    2.13 kB
    Add examples over 3 years ago
  • README.md
    11.4 kB
    Add examples over 3 years ago
  • model_index.json
    543 Bytes
    Add safetensor full weight for 2-1 over 3 years ago