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

  • Log In
  • Sign Up

diffusers
/
FLUX.1-vae

Diffusers
Safetensors
Model card Files Files and versions
xet
Community

Instructions to use diffusers/FLUX.1-vae with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use diffusers/FLUX.1-vae with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("diffusers/FLUX.1-vae", 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
FLUX.1-vae
168 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
hlky's picture
hlky
new handler
da548cf verified about 1 year ago
  • .gitattributes
    1.46 kB
    Upload folder using huggingface_hub about 1 year ago
  • config.json
    774 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • diffusion_pytorch_model.safetensors
    168 MB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • handler.py
    3 kB
    new handler about 1 year ago
  • requirements.txt
    27 Bytes
    Upload folder using huggingface_hub about 1 year ago