Instructions to use SherryXTChen/Instruct-CLIP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SherryXTChen/Instruct-CLIP 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("SherryXTChen/Instruct-CLIP", 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
|
@@ -25,8 +25,8 @@ The model is based on the paper [Instruct-CLIP: Improving Instruction-Guided Ima
|
|
| 25 |
## Capabilities
|
| 26 |
|
| 27 |
<p align="center">
|
| 28 |
-
<img src="https://
|
| 29 |
-
<img src="https://
|
| 30 |
</p>
|
| 31 |
|
| 32 |
## Installation
|
|
|
|
| 25 |
## Capabilities
|
| 26 |
|
| 27 |
<p align="center">
|
| 28 |
+
<img src="https://raw.githubusercontent.com/SherryXTChen/Instruct-CLIP/refs/heads/main/assets/teaser_1.png" alt="Figure 1" width="43%">
|
| 29 |
+
<img src="https://raw.githubusercontent.com/SherryXTChen/Instruct-CLIP/refs/heads/main/assets/teaser_2.png" alt="Figure 2" width="50%">
|
| 30 |
</p>
|
| 31 |
|
| 32 |
## Installation
|