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
Download t_depth.PNG from Adapter/t2iadapter: direct link, hf CLI and curl.
- Browser
- Download file 2.95 MB
-
https://huggingface.co/Adapter/t2iadapter/resolve/main/t_depth.PNG
- Command line
-
hf download hf://Adapter/t2iadapter/t_depth.PNG
-
curl -L -o t_depth.PNG https://huggingface.co/Adapter/t2iadapter/resolve/main/t_depth.PNG
2.95 MB
- Xet hash:
- 176891722cbc987205813bf2c7d07a83dbbcf7ee0c965e6a00e0b315e8cb7b9c
- Size of remote file:
- 2.95 MB
- SHA256:
- 0920a5d5dc772a1cea6268c10e0939d6f36a4631869d28f73c0b7b77d4695c37
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.