CalamitousFelicitousness 0769d423a7 fix(upscale): make SeedVR2 generation_step patch idempotent
UpscalerSeedVR.load_model() rebinds the module-global
generation.generation_step (called by name inside generation_loop) to
the instance's model_step wrapper, keeping the previous value to call
back into. That global was never restored, so the second pass through
load_model() saved the wrapper itself as the "original", making
model_step() call itself -> RecursionError.

The second pass is reached on any model (re)load: with upscaler_unload
enabled (self.model reset to None after each run) every subsequent run
recurses, and switching SeedVR variants (self.model_loaded != model_name)
triggers it even without unload.

Stash the pristine generation_step on the module once and have the
wrapper call that, so repeated loads never wrap the wrapper.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 10:18:21 +01:00
2026-06-10 10:28:27 +00:00
2023-01-06 12:15:25 -05:00
2026-06-15 15:10:24 +02:00
2026-06-10 10:28:27 +00:00
2026-06-15 14:55:14 +02:00
2026-06-15 15:10:24 +02:00
2026-06-15 08:45:58 +02:00
2026-05-23 08:32:33 +02:00
2026-05-23 08:32:33 +02:00
2026-04-07 14:59:34 +02:00
2026-05-13 11:35:11 +02:00
2026-05-27 16:15:58 +02:00
2026-05-20 20:09:06 +02:00
2026-06-16 10:16:17 +02:00
2025-07-05 17:13:31 -04:00
2025-07-05 17:13:31 -04:00
2026-05-20 20:15:48 +02:00
2026-05-27 19:08:41 +02:00
2026-06-15 14:55:14 +02:00
2025-07-05 13:23:48 -04:00
2025-07-05 17:13:31 -04:00
2026-06-15 15:10:24 +02:00
2026-06-15 15:10:24 +02:00
2026-06-04 12:36:10 +02:00
2026-06-06 08:58:59 +02:00
2026-06-15 14:55:14 +02:00
2025-07-08 16:16:08 -04:00
2026-06-04 12:48:57 +02:00
2026-05-28 11:54:08 +02:00
2026-05-28 11:54:08 +02:00
2026-05-28 11:54:08 +02:00

SD.Next: AI art generator logo

SD.Next: All-in-one WebUI

SD.Next is a state-of-the-art, open-source server application and web interface (WebUI) for AI image and video generation, built on Stable Diffusion and supporting dozens of advanced models. Create, refine, caption, upscale and process images and videos with a modern, cross-platform application — perfect for artists, researchers, and AI enthusiasts.

Stars Forks Contributors License

Last release Last commit Dev

Home Code Docs Wiki Changelog

Discord Sponsors


Table of contents

Why SD.Next?

SD.Next is feature-rich open-source AI art generation platform with a focus on performance, flexibility, and user experience.

In addition to supporting all popular workflows, a wide range of platforms and models, SD.Next includes many features not found in other WebUIs, such as:

  • Support for many Diffusion models!
  • Automatic model download: simply select a model from the list of reference models and it will be downloaded and ready to use
    Or download and add your own models and they will be automatically detected and available in the UI
  • SDNQ: State-of-the-Art model quantization engine Use pre-quantized or run with quantization on-the-fly for up to 4x VRAM reduction with no or minimal quality and performance impact
  • Balanced Offload: Dynamically balance CPU and GPU memory to run larger models on limited hardware
  • Caption and Enhance with 25+ built-in LLM and VLM models, OpenCLiP models, Tagger with WaifuDiffusion and DeepDanbooru models
  • Image Processing with full image correction color-grading suite of tools
  • Multi-platform!
    Platform specific auto-detection and tuning performed on install
  • Fully Localized to ~15 languages and with support for many UI themes!
  • Desktop and mobile interfaces
  • Built in installer with automatic updates and dependency management

Screenshots

Desktop interface
SD.Next: AI art generator desktop interface screenshot
Mobile interface
SD.Next: AI art generator mobile interface screenshot


Supported Workflows

  • Generate with Text-to-Image, Image-to-Image, Text-to-Video, Image-to-Video, etc.
  • Edit with Detailer, HiRes/Refine, Image-Edit, Inpainting, Outpainting, etc.
  • Enhance guidance with LoRA, ControlNet, IPAdapters, Prompt Enhance, etc.
  • Process with Caption, Tag, Upscale, Interpolate, Colorize, Filter, etc.
  • and many more with support for custom scripts and extensions

Supported AI Models

SD.Next supports broad range of models and its frequently updated with latest models
For full list, see supported models and model specs

Supported Platforms and Hardware

SD.Next is designed to run on a wide range of hardware and platforms, with optimizations for various GPU architectures with acceleration and support for CPU-only execution. Supported platforms include:

  • nVidia GPUs using CUDA libraries on both Windows and Linux
  • AMD GPUs using ROCm libraries on both Linux and Windows
  • AMD GPUs on Windows using ZLUDA libraries
  • Intel Arc GPUs using OneAPI with IPEX XPU libraries on both Windows and Linux
  • Any CPU/GPU or device compatible with OpenVINO libraries on both Windows and Linux
  • Any GPU compatible with DirectX on Windows using DirectML libraries
  • Apple M1/M2 on OSX using built-in support in Torch with MPS optimizations
  • ONNX/Olive

Plus Docker container recipes for: CUDA, ROCm, Intel IPEX and OpenVINO

Getting started

Tip

And for platform specific information, check out
WSL | Intel Arc | DirectML | OpenVINO | ONNX & Olive | ZLUDA | AMD ROCm | MacOS | nVidia | Docker

Quick Start

git clone https://github.com/vladmandic/sdnext
cd sdnext
./webui.sh # Linux/Mac
webui.bat  # Windows
webui.ps1  # PowerShell

Warning

If you run into issues, check out troubleshooting and debugging guides

Community and Support

If you're unsure how to use a feature, best place to start is Docs and if its not there,
check ChangeLog for when feature was first introduced as it will always have a short note on how to use it

And for any question, reach out on Discord or open an issue or discussion

Credits

Main credit goes to Automatic1111 WebUI for the original codebase

Development and Contributing

Please see Dev Home for details on how to contribute to this project

S
Description
Opinionated fork/implementation of Stable Diffusion
Readme Cite this repository 118 MiB
Languages
Python 94%
CSS 3.1%
TypeScript 2.4%
JavaScript 0.4%