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

  • Log In
  • Sign Up

ostris
/
emotion-sliders

Text-to-Image
Diffusers
stable-diffusion
lora
template:sd-lora
migrated
sad
happy
emotions
tool
slider
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Diffusers

    How to use ostris/emotion-sliders with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("ostris/emotion-sliders")
    
    prompt = "close up photo of a woman with dirty blonde hair, soft box photography in a dark room, straight hair, centered in frame"
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
emotion-sliders
6.96 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
ostris's picture
ostris
Upload folder using huggingface_hub
1654ee6 verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • 1800239.jpeg
    522 kB
    Upload folder using huggingface_hub about 2 years ago
  • README.md
    1.93 kB
    Upload folder using huggingface_hub about 2 years ago
  • emotion_happy_slider_v1.safetensors
    6.43 MB
    xet
    Upload folder using huggingface_hub about 2 years ago