Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

hc0
/
RefRes

Image-to-Image
Diffusers
lora
image-restoration
face-restoration
super-resolution
reference-based
qwen-image-2.1
Model card Files Files and versions
xet
Community

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
RefRes
641 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
hc0's picture
hc0
Replace example images with the new comparison (with vs without RefRes)
ce71ddf verified 7 days ago
  • assets
    Replace example images with the new comparison (with vs without RefRes) 7 days ago
  • qwen-image-2.1
    RefRes v5 for Qwen-Image-2.1 / Qwen-Image-2.1-Turbo 7 days ago
  • .gitattributes
    1.89 kB
    Replace example images with the new comparison (with vs without RefRes) 7 days ago
  • LICENSE
    7.83 kB
    RefRes v5 for Qwen-Image-2.1 / Qwen-Image-2.1-Turbo 7 days ago
  • NOTICE
    547 Bytes
    RefRes v5 for Qwen-Image-2.1 / Qwen-Image-2.1-Turbo 7 days ago
  • README.md
    4.31 kB
    Replace example images with the new comparison (with vs without RefRes) 7 days ago