From ff74429612eee90d749e5d9cf0a121d3db132cb0 Mon Sep 17 00:00:00 2001 From: MSXYZ-GenAI Date: Wed, 29 Apr 2026 18:03:07 +0300 Subject: [PATCH] Add Photo preset --- VideoTAADLAA.py | 7 ++++++- config.py | 3 ++- presets.py | 28 ++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) diff --git a/VideoTAADLAA.py b/VideoTAADLAA.py index 62ad148..bb00ab0 100644 --- a/VideoTAADLAA.py +++ b/VideoTAADLAA.py @@ -86,7 +86,7 @@ class VideoTAADLAA: return { "required": { "images": ("IMAGE",), - "preset": (["Auto", "Balanced", "Detail", "Smooth"],), + "preset": (["Auto", "Balanced", "Detail", "Smooth", "Photo"],), }, "optional": { "detail_intensity": ("FLOAT", { @@ -602,11 +602,16 @@ class VideoTAADLAA: def _frame_edge_aa_strength(self, preset, is_single_image): if is_single_image: + if preset == "Photo": + return self.photo_edge_aa_strength return 0.0 if preset == "Detail": return self.detail_edge_aa_strength + if preset == "Photo": + return self.photo_edge_aa_strength + return 1.0 def _vram_mb(self, device): diff --git a/config.py b/config.py index f32ae9d..0fd2338 100644 --- a/config.py +++ b/config.py @@ -2,7 +2,7 @@ # MSXYZ NODE_DEFAULTS = { - + # Model blend "model_weight": 1.00, "dlaa_blend_scale": 1.00, @@ -73,4 +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, } diff --git a/presets.py b/presets.py index 09373fc..e05cfee 100644 --- a/presets.py +++ b/presets.py @@ -47,6 +47,21 @@ 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, + "luma_boost_mult": 0.94, + "saturation_boost_mult": 0.94, + "motion_threshold": 0.08, + "taa_strength": 0.12, + "dlaa_strength": 1.00, + "tone_strength": 0.14, + "edge_sharp_strength": 0.24, + "motion_sensitivity": 0.50, + "jitter_scale": 0.0, + }, } @@ -119,6 +134,7 @@ PRESET_MODEL_WEIGHT = { "Balanced": 1.00, "Detail": 1.38, "Smooth": 0.90, + "Photo": 1.00, "Auto": 1.10, } @@ -172,4 +188,16 @@ TEXTURE_PRESETS = { "edge_threshold": 0.070, "edge_slope": 18.0, }, + "Photo": { + "enabled": True, + "strength": 0.55, + "limit": 0.016, + "blur_kernel": 5, + "dark_base": 0.25, + "motion_suppression": 0.95, + "highlight_suppression": 0.75, + "line_suppression": 0.75, + "edge_threshold": 0.070, + "edge_slope": 18.0, + }, } \ No newline at end of file