From e2c65b4ba4c9fbd687ddf3fb9bd73d7ab7853dab Mon Sep 17 00:00:00 2001 From: MSXYZ-GenAI Date: Wed, 29 Apr 2026 20:25:51 +0300 Subject: [PATCH] Add Photo preset --- VideoTAADLAA.py | 6 ++++-- config.py | 2 +- presets.py | 30 +++++++++++++++--------------- 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/VideoTAADLAA.py b/VideoTAADLAA.py index bb00ab0..3b3dcfe 100644 --- a/VideoTAADLAA.py +++ b/VideoTAADLAA.py @@ -554,7 +554,7 @@ class VideoTAADLAA: if debug_stats: final_texture_delta = (out - dlaa_out).abs().mean().item() - + if ( debug_stats and frame_index is not None and @@ -596,6 +596,8 @@ class VideoTAADLAA: def _frame_blur_radius(self, preset, is_single_image): if is_single_image: + if preset == "Photo": + return 1 return 0 return 1 @@ -821,7 +823,7 @@ class VideoTAADLAA: model_delta_value = None if debug_stats: model_delta_value = model_delta.abs().mean().item() - + dlaa_out = torch.clamp( rgb + model_delta * self.model_weight * preset_model_weight, 0.0, diff --git a/config.py b/config.py index 0fd2338..a51f600 100644 --- a/config.py +++ b/config.py @@ -73,5 +73,5 @@ NODE_DEFAULTS = { "detail_shimmer_slope": 100.0, "detail_shimmer_max_blend": 0.35, "detail_edge_aa_strength": 0.38, - "photo_edge_aa_strength": 0.12, + "photo_edge_aa_strength": 0.25, } diff --git a/presets.py b/presets.py index e05cfee..438cd4c 100644 --- a/presets.py +++ b/presets.py @@ -47,18 +47,18 @@ PRESETS = { "motion_sensitivity": 0.10, "jitter_scale": 0.25, }, - "Photo": { - "detail_boost": 0.98, - "edge_boost": 0.78, - "temporal_strength": 0.12, - "micro_limit": 0.024, + "Photo": { + "detail_boost": 1.18, + "edge_boost": 0.55, + "temporal_strength": 0.10, + "micro_limit": 0.034, "luma_boost_mult": 0.94, "saturation_boost_mult": 0.94, "motion_threshold": 0.08, - "taa_strength": 0.12, + "taa_strength": 0.10, "dlaa_strength": 1.00, - "tone_strength": 0.14, - "edge_sharp_strength": 0.24, + "tone_strength": 0.10, + "edge_sharp_strength": 0.06, "motion_sensitivity": 0.50, "jitter_scale": 0.0, }, @@ -178,7 +178,7 @@ TEXTURE_PRESETS = { }, "Smooth": { "enabled": False, - "strength": 0.25, + "strength": 2.25, "limit": 0.015, "blur_kernel": 5, "dark_base": 0.70, @@ -188,15 +188,15 @@ TEXTURE_PRESETS = { "edge_threshold": 0.070, "edge_slope": 18.0, }, - "Photo": { + "Photo": { "enabled": True, - "strength": 0.55, - "limit": 0.016, + "strength": 0.90, + "limit": 0.030, "blur_kernel": 5, - "dark_base": 0.25, + "dark_base": 0.35, "motion_suppression": 0.95, - "highlight_suppression": 0.75, - "line_suppression": 0.75, + "highlight_suppression": 0.45, + "line_suppression": 0.10, "edge_threshold": 0.070, "edge_slope": 18.0, },