Instructions to use ilopes/matswap with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ilopes/matswap 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("ilopes/matswap", 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
Add HF paper page
Browse files
README.md
CHANGED
|
@@ -8,6 +8,7 @@ library_name: diffusers
|
|
| 8 |
|
| 9 |
Official pipeline release for MatSwap.
|
| 10 |
For a guide on how to use this model, check out the [official repository](https://github.com/astra-vision/MatSwap).
|
| 11 |
-
|
| 12 |
-
|
|
|
|
| 13 |
</p>
|
|
|
|
| 8 |
|
| 9 |
Official pipeline release for MatSwap.
|
| 10 |
For a guide on how to use this model, check out the [official repository](https://github.com/astra-vision/MatSwap).
|
| 11 |
+
The HuggingFace paper page can be found [here](https://huggingface.co/papers/2502.07784)
|
| 12 |
+
<p align="center" >
|
| 13 |
+
<img src="https://github.com/user-attachments/assets/85ca9075-058f-42e7-9ce9-78ff7c2e7767" alt="Teaser image" width="70%">
|
| 14 |
</p>
|