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

  • Log In
  • Sign Up

Duplicated from  lambda/sd-image-variations-diffusers

matttrent
/
sd-image-variations-diffusers

Image-to-Image
Diffusers
StableDiffusionImageVariationEmbedsPipeline
stable-diffusion
stable-diffusion-diffusers
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • Diffusers

    How to use matttrent/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("matttrent/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 / text_encoder
1.71 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 1 commit
Matthew Trentacoste
adding text_processor and text_encoder
2337f0b over 3 years ago
  • README.md
    7.95 kB
    adding text_processor and text_encoder over 3 years ago
  • config.json
    4.52 kB
    adding text_processor and text_encoder over 3 years ago
  • merges.txt
    525 kB
    adding text_processor and text_encoder over 3 years ago
  • preprocessor_config.json
    316 Bytes
    adding text_processor and text_encoder over 3 years ago
  • pytorch_model.bin
    1.71 GB
    xet
    adding text_processor and text_encoder over 3 years ago
  • special_tokens_map.json
    389 Bytes
    adding text_processor and text_encoder over 3 years ago
  • tokenizer.json
    2.22 MB
    adding text_processor and text_encoder over 3 years ago
  • tokenizer_config.json
    905 Bytes
    adding text_processor and text_encoder over 3 years ago
  • vocab.json
    961 kB
    adding text_processor and text_encoder over 3 years ago