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

  • Log In
  • Sign Up

mlpc-lab
/
TokenCompose_SD14_B

Text-to-Image
Diffusers
Safetensors
English
StableDiffusionPipeline
stable-diffusion
cvpr
image-generation
compositionality
Model card Files Files and versions
xet
Community

Instructions to use mlpc-lab/TokenCompose_SD14_B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use mlpc-lab/TokenCompose_SD14_B with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("mlpc-lab/TokenCompose_SD14_B", 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
TokenCompose_SD14_B
5.48 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 10 commits
zwcolin's picture
zwcolin
Update README.md
3128e7f verified almost 2 years ago
  • feature_extractor
    Upload StableDiffusionPipeline over 2 years ago
  • safety_checker
    Upload StableDiffusionPipeline over 2 years ago
  • scheduler
    Upload StableDiffusionPipeline over 2 years ago
  • text_encoder
    Upload StableDiffusionPipeline over 2 years ago
  • tokenizer
    Upload StableDiffusionPipeline over 2 years ago
  • unet
    Upload StableDiffusionPipeline over 2 years ago
  • vae
    Upload StableDiffusionPipeline over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    4.39 kB
    Update README.md almost 2 years ago
  • model_index.json
    629 Bytes
    Upload StableDiffusionPipeline over 2 years ago