From 16508d353db90441b86ca40a09f7fd6c5991237b Mon Sep 17 00:00:00 2001 From: Adrien Toupet Date: Fri, 28 Nov 2025 17:50:40 -0500 Subject: [PATCH] release: v2.5.12 - fix color artifacts regression from in-place transform ops --- README.md | 4 ++++ pyproject.toml | 2 +- src/core/generation_utils.py | 4 ++-- src/utils/constants.py | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5e9e815..427c508 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,10 @@ We're actively working on improvements and new features. To stay informed: ## 🚀 Updates +**2025.11.28 - Version 2.5.12** + +- **🐛 Fix: Color artifacts regression** - Reverted in-place tensor operations in video transform pipeline that caused color artifacts on some images + **2025.11.28 - Version 2.5.11** - **⚡ Feature: CUDNN attention backend** - Added support for PyTorch 2.3+ CUDNN_ATTENTION backend with automatic fallback for older versions (thanks @eadwu) diff --git a/pyproject.toml b/pyproject.toml index 6c38c33..bea61ca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "seedvr2_videoupscaler" description = "SeedVR2 official ComfyUI integration: ByteDance-Seed's one-step diffusion-based video/image upscaling with memory-efficient inference" -version = "2.5.11" +version = "2.5.12" authors = [ {name = "numz"}, {name = "adrientoupet"} diff --git a/src/core/generation_utils.py b/src/core/generation_utils.py index dfa7b0f..129f24d 100644 --- a/src/core/generation_utils.py +++ b/src/core/generation_utils.py @@ -77,9 +77,9 @@ def prepare_video_transforms(resolution: int, max_resolution: int = 0, debug: Op downsample_only=False, max_resolution=max_resolution, ), - Lambda(lambda x: x.clamp_(0.0, 1.0)), + Lambda(lambda x: torch.clamp(x, 0.0, 1.0)), DivisiblePad((16, 16)), - Normalize(0.5, 0.5, inplace=True), + Normalize(0.5, 0.5), Lambda(lambda x: x.permute(1, 0, 2, 3)), # t c h w -> c t h w (faster than Rearrange) ]) diff --git a/src/utils/constants.py b/src/utils/constants.py index da686ed..cc99da2 100644 --- a/src/utils/constants.py +++ b/src/utils/constants.py @@ -4,7 +4,7 @@ Only includes constants actually used in the codebase """ # Version information -__version__ = "2.5.11" +__version__ = "2.5.12" import os import warnings