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

  • Log In
  • Sign Up

lambda
/
sd-image-variations-diffusers

Image-to-Image
Diffusers
StableDiffusionImageVariationPipeline
stable-diffusion
stable-diffusion-diffusers
Model card Files Files and versions
xet
Community
25

Instructions to use lambda/sd-image-variations-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use lambda/sd-image-variations-diffusers with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    from diffusers.utils import load_image
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("lambda/sd-image-variations-diffusers", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Turn this cat into a dog"
    input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
    
    image = pipe(image=input_image, prompt=prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
sd-image-variations-diffusers
6.21 GB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 15 commits
patrickvonplaten's picture
patrickvonplaten
Add `clip_sample=False` to scheduler to make model compatible with DDIM.
f0c29c0 over 3 years ago
  • feature_extractor
    use-clip-vision-head (#4) over 3 years ago
  • image_encoder
    update model and readme for v2 over 3 years ago
  • safety_checker
    update model and readme for v2 over 3 years ago
  • scheduler
    Add `clip_sample=False` to scheduler to make model compatible with DDIM. over 3 years ago
  • unet
    update model and readme for v2 over 3 years ago
  • vae
    update model and readme for v2 over 3 years ago
  • .gitattributes
    1.38 kB
    initial commit over 3 years ago
  • README.md
    10.6 kB
    Merge branch 'main' of https://huggingface.co/lambdalabs/sd-image-variations-diffusers into main over 3 years ago
  • alias-montage.jpg
    151 kB
    update model and readme for v2 over 3 years ago
  • default-montage.jpg
    148 kB
    update model and readme for v2 over 3 years ago
  • earring.jpg
    113 kB
    update model and readme for v2 over 3 years ago
  • inputs.jpg
    42.6 kB
    update model and readme for v2 over 3 years ago
  • model_index.json
    545 Bytes
    update model and readme for v2 over 3 years ago
  • v1-montage.jpg
    613 kB
    update model and readme for v2 over 3 years ago
  • v2-montage.jpg
    570 kB
    update model and readme for v2 over 3 years ago