Image-to-Image
Diffusers
Safetensors
art
t2i-adapter
stable-diffusion-xl-diffusers
stable-diffusion-xl
Instructions to use TencentARC/t2i-adapter-sketch-sdxl-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use TencentARC/t2i-adapter-sketch-sdxl-1.0 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("TencentARC/t2i-adapter-sketch-sdxl-1.0", torch_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
Upload folder using huggingface_hub
Browse files
config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "T2IAdapter",
|
| 3 |
+
"_diffusers_version": "0.21.0.dev0",
|
| 4 |
+
"_name_or_path": "valhalla/t2i-sketch",
|
| 5 |
+
"adapter_type": "full_adapter_xl",
|
| 6 |
+
"channels": [
|
| 7 |
+
320,
|
| 8 |
+
640,
|
| 9 |
+
1280,
|
| 10 |
+
1280
|
| 11 |
+
],
|
| 12 |
+
"downscale_factor": 16,
|
| 13 |
+
"in_channels": 3,
|
| 14 |
+
"num_res_blocks": 2
|
| 15 |
+
}
|
diffusion_pytorch_model.fp16.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f88c53368d53bec6b70fc9d797ec12b88a512d2a7e9068d11fbf621917d9fdd
|
| 3 |
+
size 158060440
|
diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95ffaafde9e0a13061205c1d701dd22326be75884b1adfc0c1a1626dfa72d0a4
|
| 3 |
+
size 316116778
|