Instructions to use Viggle/Viggle-Image-Swap with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Viggle/Viggle-Image-Swap 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("Qwen/Qwen-Image-2.1", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Viggle/Viggle-Image-Swap") 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
- Local Apps Settings
- Draw Things
Download examples/flamingos.jpg from Viggle/Viggle-Image-Swap: direct link, hf CLI and curl.
- Browser
- Download file 201 kB
-
https://huggingface.co/Viggle/Viggle-Image-Swap/resolve/main/examples/flamingos.jpg
- Command line
-
hf download hf://Viggle/Viggle-Image-Swap/examples/flamingos.jpg
-
curl -L -o flamingos.jpg https://huggingface.co/Viggle/Viggle-Image-Swap/resolve/main/examples/flamingos.jpg
201 kB

- Xet hash:
- b3a22714b53a28235b05b6ed5987e37dbb1824bb324284f8e4000828693076c0
- Size of remote file:
- 201 kB
- SHA256:
- b98927c99f3013eb3720bad138f8ac53ccc48b293f7e1907c8302c45e31d56dc
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.