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
Commit History
-
Upload 2 files
3c291e0 -
Upload demo_dragon.png
10cac25 -
Upload demo_tree.png
f927220
-
Upload 5 files
7b092ae -
Upload teaser.PNG
86498ad
-
Upload 6 files
2925c5d -
Rename res_pose (9).png to res_pose.png
afdbcdc -
Upload res_pose (9).png
cbf693b -
Upload 2 files
26d4cc4 -
Upload 2 files
0822f99 -
Upload 2 files
4b74e97 -
Upload 2 files
40c6eac
-
Upload sketch_output.png
51ffd6c
-
initial commit
d940782