Image-to-Image
Diffusers
StableDiffusionInstructPix2PixPipeline
stable-diffusion
stable-diffusion-diffusers
Instructions to use instruction-tuning-sd/low-level-img-proc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use instruction-tuning-sd/low-level-img-proc 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("instruction-tuning-sd/low-level-img-proc", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,14 +1,13 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
tags:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
- art
|
| 8 |
widget:
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
datasets:
|
| 13 |
- instruction-tuning-sd/low-level-image-proc
|
| 14 |
---
|
|
@@ -107,4 +106,4 @@ For notes on limitations, misuse, malicious use, out-of-scope use, please refer
|
|
| 107 |
year = {2023},
|
| 108 |
note = {https://huggingface.co/blog/instruction-tuning-sd},
|
| 109 |
}
|
| 110 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
tags:
|
| 4 |
+
- stable-diffusion
|
| 5 |
+
- stable-diffusion-diffusers
|
| 6 |
+
- image-to-image
|
|
|
|
| 7 |
widget:
|
| 8 |
+
- src: >-
|
| 9 |
+
https://hf.co/datasets/sayakpaul/sample-datasets/resolve/main/derain%20the%20image_1.png
|
| 10 |
+
prompt: derain the image
|
| 11 |
datasets:
|
| 12 |
- instruction-tuning-sd/low-level-image-proc
|
| 13 |
---
|
|
|
|
| 106 |
year = {2023},
|
| 107 |
note = {https://huggingface.co/blog/instruction-tuning-sd},
|
| 108 |
}
|
| 109 |
+
```
|