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

  • Log In
  • Sign Up

Adapter
/
t2iadapter

Image-to-Image
Diffusers
Safetensors
art
t2i-adapter
stable-diffusion
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Diffusers

    How to use Adapter/t2iadapter 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("Adapter/t2iadapter", 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
t2iadapter
Ctrl+K
Ctrl+K
  • 1 contributor
History: 21 commits
Adapter's picture
Adapter
Upload 2 files
3c291e0 over 2 years ago
  • canny_sdxl_1.0
    first upload over 2 years ago
  • figs_SDXLV1.0
    Upload 2 files over 2 years ago
  • openpose_sdxl_1.0
    first upload over 2 years ago
  • sketch_sdxl_1.0
    first upload over 2 years ago
  • .gitattributes
    2.57 kB
    Upload 2 files over 2 years ago
  • README.md
    1.12 kB
    Create README.md over 2 years ago
  • canny.png
    17.4 kB
    upload examples over 2 years ago
  • openpose.png
    32.2 kB
    upload examples over 2 years ago
  • people.jpg
    97.1 kB
    Rename people (2).jpg to people.jpg over 2 years ago
  • res_pose.png
    1.45 MB
    xet
    Rename res_pose (9).png to res_pose.png over 2 years ago
  • sketch.png
    23.5 kB
    upload examples over 2 years ago
  • sketch_output.png
    1.59 MB
    xet
    Upload sketch_output.png over 2 years ago
  • t_canny.PNG
    2.76 MB
    xet
    Upload 5 files over 2 years ago
  • t_depth.PNG
    2.95 MB
    xet
    Upload 5 files over 2 years ago
  • t_lineart.PNG
    3.05 MB
    xet
    Upload 5 files over 2 years ago
  • t_pose.PNG
    3.29 MB
    xet
    Upload 5 files over 2 years ago
  • t_sketch.PNG
    2.86 MB
    xet
    Upload 5 files over 2 years ago