ComfyUI_InvSR

ComfyUI_InvSR
★ 258

超分辨率扩散模型ComfyUI 集成分块处理
ComfyUI 的 InvSR 节点,实现任意步扩散反演的图像超分辨率,自动下载模型并支持大图分块与显存优化。
💡 在 ComfyUI 中对低分辨率图像进行扩散反演超分辨率处理
🍴 16 Forks💻 Python🔄 2026-01-02
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/6862a2001521
📦 requirements.txt
opencv-contrib-python-headless
omegaconf
diffusers
numpy<2
huggingface-hub
transformers
Star History Chart
📄 README

ComfyUI InvSR

[](https://arxiv.org/abs/2412.09013)

This project is a ComfyUI wrapper for InvSR (Arbitrary-steps Image Super-resolution via Diffusion Inversion)

Last tested: 2 January 2026 (ComfyUI v0.7.0@f2fda02 | Torch 2.9.1 | Python 3.10.12 | RTX4090 | CUDA 13.0 | Debian 12)

⭐ Support

If you like my projects and wish to see updates and new features, please consider supporting me. It helps a lot!

[](https://github.com/yuvraj108c/ComfyUI-Depth-Anything-Tensorrt)

[](https://github.com/yuvraj108c/ComfyUI-Upscaler-Tensorrt)

[](https://github.com/yuvraj108c/ComfyUI-Dwpose-Tensorrt)

[](https://github.com/yuvraj108c/ComfyUI-Rife-Tensorrt)

[](https://github.com/yuvraj108c/ComfyUI-Whisper)

[](https://github.com/yuvraj108c/ComfyUI_InvSR)

[](https://github.com/yuvraj108c/ComfyUI-Thera)

[](https://github.com/yuvraj108c/ComfyUI-Video-Depth-Anything)

[](https://github.com/yuvraj108c/ComfyUI-PiperTTS)

[](https://www.buymeacoffee.com/yuvraj108cZ)

[](https://paypal.me/yuvraj108c)


Installation

Navigate to the ComfyUI /custom_nodes directory

git clone https://github.com/yuvraj108c/ComfyUI_InvSR
cd ComfyUI_InvSR

pip install -r requirements.txt

Usage

  • Load example workflow
  • Diffusers model (stabilityai/sd-turbo) will download automatically to ComfyUI/models/diffusers
  • InvSR model (noise_predictor_sd_turbo_v5.pth) will download automatically to ComfyUI/models/invsr
  • To deal with large images, e.g, 1k—->4k, set chopping_size 256
  • If your GPU memory is limited, please set chopping_batch_size to 1
  • Parameters

  • num_steps: number of inference steps
  • cfg: classifier-free guidance scale
  • batch_size: Controls how many complete images are processed simultaneously
  • chopping_batch_size: Controls how many patches from the same image are processed simultaneously
  • chopping_size: Controls the size of patches when splitting large images
  • color_fix: Method to fix color shift in processed images
  • Updates

    28 April 2025

  • Update diffusers versions in requirements.txt to fix https://github.com/yuvraj108c/ComfyUI_InvSR/issues/26, https://github.com/yuvraj108c/ComfyUI_InvSR/issues/21, https://github.com/yuvraj108c/ComfyUI_InvSR/issues/15
  • Add support for noise_predictor_sd_turbo_v5_diftune.pth
  • 03 February 2025

  • Add cfg parameter
  • Make image divisible by 16
  • Use mm to set torch device
  • 31 January 2025

  • Merged https://github.com/yuvraj108c/ComfyUI_InvSR/pull/5 by wfjsw
  • Compatibility with diffusers>=0.28
  • Massive code refactoring & cleanup
  • Citation

    @article{yue2024InvSR,
      title={Arbitrary-steps Image Super-resolution via Diffusion Inversion},
      author={Yue, Zongsheng and Kang, Liao and Loy, Chen Change},
      journal = {arXiv preprint arXiv:2412.09013},
      year={2024},
    }

    License

    This project is licensed under NTU S-Lab License 1.0

    Acknowledgments

    Thanks to simplepod.ai for providing GPU servers

    Star History

    [](https://star-history.com/#yuvraj108c/ComfyUI_InvSR&Date)