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

  • Log In
  • Sign Up

ostris
/
Flex.2-preview

Text-to-Image
Diffusers
Safetensors
FluxPipeline
Model card Files Files and versions
xet
Community
24

Instructions to use ostris/Flex.2-preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use ostris/Flex.2-preview with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("ostris/Flex.2-preview", 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.2-preview
42.6 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
ostris's picture
ostris
Upload folder using huggingface_hub
04512ad verified about 1 year ago
  • scheduler
    Upload folder using huggingface_hub about 1 year ago
  • text_encoder
    Upload folder using huggingface_hub about 1 year ago
  • text_encoder_2
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer_2
    Upload folder using huggingface_hub about 1 year ago
  • transformer
    Upload folder using huggingface_hub about 1 year ago
  • vae
    Upload folder using huggingface_hub about 1 year ago
  • .gitattributes
    1.52 kB
    Upload folder using huggingface_hub about 1 year ago
  • Flex.2-preview.safetensors
    16.3 GB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • LICENSE.txt
    11.5 kB
    Upload folder using huggingface_hub about 1 year ago
  • README.md
    29.2 kB
    Upload folder using huggingface_hub about 1 year ago
  • model_index.json
    579 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • pipeline.py
    21 kB
    Upload folder using huggingface_hub about 1 year ago