Files
automatic/modules/postprocess
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-05-11 08:36:49 +02:00
2026-02-19 11:09:13 +01:00
2025-02-18 18:47:42 -05:00
2026-02-19 09:15:37 +01:00
2026-02-05 16:55:06 +01:00
2026-06-04 12:36:10 +02:00
2026-02-19 11:13:44 +01:00
2026-02-19 09:15:37 +01:00
2024-01-27 02:54:39 +03:00
2026-02-19 11:09:13 +01:00
2026-02-19 11:13:44 +01:00
2026-06-15 14:55:14 +02:00