Instructions to use WeiChow/AnySD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use WeiChow/AnySD 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("WeiChow/AnySD", 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 README.md
Browse files
README.md
CHANGED
|
@@ -7,7 +7,7 @@ license: apache-2.0
|
|
| 7 |
[](https://arxiv.org/abs/2411.15738)
|
| 8 |
[](https://huggingface.co/datasets/Bin1117/AnyEdit)
|
| 9 |
[](https://huggingface.co/WeiChow/AnySD)
|
| 10 |
-
[](https://dcd-anyedit.github.io/)
|
| 12 |
|
| 13 |
|
|
@@ -25,7 +25,7 @@ Since **AnyEdit** contains a wide range of editing instructions across various
|
|
| 25 |
|
| 26 |
#### 🌐 Inference
|
| 27 |
|
| 28 |
-
To run the model, you can refer to the code in [](https://arxiv.org/abs/2411.15738)
|
| 8 |
[](https://huggingface.co/datasets/Bin1117/AnyEdit)
|
| 9 |
[](https://huggingface.co/WeiChow/AnySD)
|
| 10 |
+
[](https://github.com/weichow23/AnySD)
|
| 11 |
[](https://dcd-anyedit.github.io/)
|
| 12 |
|
| 13 |
|
|
|
|
| 25 |
|
| 26 |
#### 🌐 Inference
|
| 27 |
|
| 28 |
+
To run the model, you can refer to the code in [](https://github.com/weichow23/AnySD), specifically
|
| 29 |
|
| 30 |
```shell
|
| 31 |
CUDA_VISIBLE_DEVICES=0 PYTHONPATH='./' python3 anysd/infer.py
|