Categories: Image

SUPIR (Super Resolution) – Tutorial to run it locally with around 10-11 GB VRAM

So, with a little investigation it is easy to do I see people asking Patreon sub for this small thing so I thought I make a small tutorial for the good of open-source:

A bit redundant with the github page but for the sake of completeness I included steps from github as well, more details are there: https://github.com/Fanghua-Yu/SUPIR

  1. git clone https://github.com/Fanghua-Yu/SUPIR.git (Clone the repo)
  2. cd SUPIR (Navigate to dir)
  3. pip install -r requirements.txt (This will install missing packages, but be careful it may uninstall some versions if they do not match, or use conda or venv)
  4. Download SDXL CLIP Encoder-1 (You need the full directory, you can do git clone https://huggingface.co/openai/clip-vit-large-patch14)
  5. Download https://huggingface.co/laion/CLIP-ViT-bigG-14-laion2B-39B-b160k/blob/main/open_clip_pytorch_model.bin (just this one file)
  6. Download an SDXL model, Juggernaut works good (https://civitai.com/models/133005?modelVersionId=348913 ) No Lightning or LCM
  7. Skip LLaVA Stuff (they are large and requires a lot memory, it basically creates a prompt from your original image but if your image is generated you can use the same prompt)
  8. Download SUPIR-v0Q (https://drive.google.com/drive/folders/1yELzm5SvAi9e7kPcO_jPp2XkTs4vK6aR?usp=sharing)
  9. Download SUPIR-v0F (https://drive.google.com/drive/folders/1yELzm5SvAi9e7kPcO_jPp2XkTs4vK6aR?usp=sharing)
  10. Modify CKPT_PTH.py for the local paths for the SDXL CLIP files you downloaded (directory for CLIP1 and .bin file for CLIP2)
  11. Modify SUPIR_v0.yaml for local paths for the other files you downloaded, at the end of the file, SDXL_CKPT, SUPIR_CKPT_F, SUPIR_CKPT_Q (file location for all 3)
  12. Navigate to SUPIR directory in command line and run “python gradio_demo.py –use_tile_vae –no_llava –use_image_slider –loading_half_params”

and it should work, let me know if you face any issues.

You can also post some pictures if you want them upscaled, I can upscale for you and upload to

Thanks a lot for authors making this great upscaler available opn-source, ALL CREDITS GO TO THEM!

Happy Upscaling!

Edit: Forgot about modifying paths, added that

submitted by /u/SykenZy
[link] [comments]

AI Generated Robotic Content

Share
Published by
AI Generated Robotic Content
Tags: ai images

Recent Posts

Update to the KREA 2 Turbo Style Gallery: 397 styles re-rendered with a prompt fix, 5 rewritten, 1 new

Update to the [KREA 2 Turbo Style Gallery](https://www.reddit.com/r/StableDiffusion/comments/1v4u1bu/krea_2_turbo_style_gallery/) from July. There's an actual finding in…

15 hours ago

Tool Calling vs. Code Execution for AI Agents: Choosing the Right Action Primitive

Theory is easier to trust once it's running against a real API, so both examples…

15 hours ago

Trading a Cloud Identity for Your Own: Workload Attestation on Managed Compute

By Dhruv PratapIntroductionOrganizations that have been around for a while usually run two identity systems side…

15 hours ago

Scaling MoE reinforcement learning on Amazon EKS with EFA and DeepEP with 40% more throughput

When you post-train a Mixture-of-Experts (MoE) model with Reinforcement Learning from Human Feedback (RLHF) or…

15 hours ago

Best practices guide for customizing Gemini models via Reinforcement Learning (RL)

Reinforcement learning (RL) has been a keystone of modern LLM post-training, but it demands large…

15 hours ago

Quince Luggage Is Affordable but Doesn’t Feel Cheap (2026)

Is Quince the Away alternative we’ve been waiting for? I tested its luggage to find…

16 hours ago