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
Download assets/refres_teaser.mp4 from hc0/RefRes: direct link, hf CLI and curl.
- Browser
- Download file 1.4 MB
-
https://huggingface.co/hc0/RefRes/resolve/main/assets/refres_teaser.mp4
- Command line
-
hf download hf://hc0/RefRes/assets/refres_teaser.mp4
-
curl -L -o refres_teaser.mp4 https://huggingface.co/hc0/RefRes/resolve/main/assets/refres_teaser.mp4
1.4 MB
- Xet hash:
- 1e080fbdc4b2f2dd3334f74993e7e4960df2097ead04863aaaa757c6122e63ff
- Size of remote file:
- 1.4 MB
- SHA256:
- 6de00162ac8829ba610873105d961f32d183cd611d7015b62bdcee02bef0273d
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.