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 NOTICE from Viggle/Viggle-Image-Swap: direct link, hf CLI and curl.
- Browser
- Download file 739 Bytes
-
https://huggingface.co/Viggle/Viggle-Image-Swap/resolve/main/NOTICE
- Command line
-
hf download hf://Viggle/Viggle-Image-Swap/NOTICE
-
curl -L -o NOTICE https://huggingface.co/Viggle/Viggle-Image-Swap/resolve/main/NOTICE
739 Bytes
| Qwen is licensed under the Qwen RESEARCH LICENSE AGREEMENT, Copyright (c) 2026 Hangzhou Tongyi Laboratory Technology Co., Ltd. All Rights Reserved. | |
| This repository is a derivative work of Qwen/Qwen-Image-2.1, produced by Viggle. | |
| Built with Qwen. | |
| It contains: | |
| ADDED viggle-image-swap-v0.1-lora.safetensors - a LoRA adapter (rank 256, alpha 256) for the base transformer, stored bf16 | |
| ADDED inference/swap.py - inference code (Apache License 2.0, see LICENSE-CODE); it loads Qwen/Qwen-Image-2.1 at runtime, | |
| and Qwen/Qwen-Image-2.1-Turbo too with --turbo | |
| No file of the base models is copied or modified; every component of Qwen/Qwen-Image-2.1 and Qwen/Qwen-Image-2.1-Turbo is | |
| loaded from its repository at runtime. | |