Image-to-Image
Diffusers
lora
image-restoration
face-restoration
super-resolution
reference-based
qwen-image-2.1
Instructions to use hc0/RefRes with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hc0/RefRes 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-Turbo", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("hc0/RefRes") 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
Commit History
14 days ago
-
Replace example images with the new comparison (with vs without RefRes)
Verified signaturece71ddf -
New teaser video and cover (man example, Qwen-Image-2.1 + RefRes)
Verified signature6a99db2
15 days ago
-
Single prompt with notes for man and reference count
Verified signature0882375 -
Add prompts for 5/9 references (woman and man) and a guide to choosing references
Verified signatureb4336a7 -
Base model: Qwen-Image-2.1-Turbo
Verified signaturef373358 -
List Qwen-Image-2.1-Turbo as the base model for the adapter listing
Verified signature307814c -
RefRes v5 for Qwen-Image-2.1 / Qwen-Image-2.1-Turbo
Verified signaturec4c9d11 -
initial commit
Verified signature94b56d5