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

  • Log In
  • Sign Up

cocktailpeanut
/
spectacles

Text-to-Image
Diffusers
flux
lora
template:sd-lora
fluxgym
Model card Files Files and versions
xet
Community
1

Instructions to use cocktailpeanut/spectacles with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use cocktailpeanut/spectacles with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("cocktailpeanut/spectacles")
    
    prompt = "an old asian lady wearing spectacles"
    image = pipe(prompt).images[0]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
spectacles / images
1.13 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
cocktailpeanut's picture
cocktailpeanut
einstein
2786686 verified over 1 year ago
  • einstein.png
    1.08 MB
    xet
    einstein over 1 year ago
  • example_hryh32ojx.png
    55.7 kB
    Add generated example (#1) over 1 year ago