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

  • Log In
  • Sign Up

kousw
/
subject-encoder-sd15

Diffusers
Safetensors
Model card Files Files and versions
xet
Community

Instructions to use kousw/subject-encoder-sd15 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use kousw/subject-encoder-sd15 with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("kousw/subject-encoder-sd15", 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
subject-encoder-sd15
4.85 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
kousw's picture
kousw
Upload 4 files
95b47e1 verified over 2 years ago
  • subject_encoder
    Upload 4 files over 2 years ago
  • unet
    Upload 4 files over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    21 Bytes
    initial commit over 2 years ago