From c83958c4576b576b3019647c3d0bc95f5786da00 Mon Sep 17 00:00:00 2001 From: Reithan Date: Fri, 13 Feb 2026 17:36:43 -0800 Subject: [PATCH] Update default parameter values for NRS node and script (#26) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updates the default parameter values for the Negative Rejection Steering implementation to improve usability and user experience. ## Changes - **Skew**: 4.0 → 2.00 - **Stretch**: 2.0 → 5.00 - **Squash**: 0.0 → 0.75 These new defaults (2/5/0.75) provide a better starting point for users, as documented in the updated README. ## Files Modified - `NRS/nodes_NRS.py`: Updated default values in INPUT_TYPES - `scripts/negative_rejection_steering_script.py`: Updated default initialization values - `README.md`: Updated beginner how-to guide to reference the new defaults --------- Signed-off-by: Reithan --- NRS/nodes_NRS.py | 6 +++--- README.md | 2 +- scripts/negative_rejection_steering_script.py | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/NRS/nodes_NRS.py b/NRS/nodes_NRS.py index 1af3510..734f451 100644 --- a/NRS/nodes_NRS.py +++ b/NRS/nodes_NRS.py @@ -25,9 +25,9 @@ class NRS: @classmethod def INPUT_TYPES(s): return {"required": { "model": ("MODEL",), - "skew": ("FLOAT", {"default": 4.0, "min": -30.0, "max": 30.0, "step": 0.01}), - "stretch": ("FLOAT", {"default": 2.0, "min": -30.0, "max": 30.0, "step": 0.01}), - "squash": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.01}), + "skew": ("FLOAT", {"default": 2.00, "min": -30.0, "max": 30.0, "step": 0.01}), + "stretch": ("FLOAT", {"default": 5.00, "min": -30.0, "max": 30.0, "step": 0.01}), + "squash": ("FLOAT", {"default": 0.75, "min": 0.0, "max": 1.0, "step": 0.01}), }} RETURN_TYPES = ("MODEL",) FUNCTION = "patch" diff --git a/README.md b/README.md index acee26c..d2b1b96 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ NRS seeks to replace the 'naive' linear interpolation of Classifier Free Guidanc ## Beginner How-To 1. Set Skew to 1/2 of your normal CFG Scale setting and Stretch to your full normal CFG Scale. Set Squash to 0.0.
-*Alternatively, try starting at 1/1/1 to get a baseline.* +*Alternatively, try starting with the default of 2/5/0.75, or at 1/1/1 to get a baseline.* 2. Test some outputs. Results should be similar in quality to CFG. 3. Adjust Skew to change the intensity of your outputs adherence to your positive and negative prompts. This primarily effects composition of the output. 4. Adjust Stretch to intensify your positive prompt's aspects and colors where they differ from the negative prompt. This primarily effects color and texture. diff --git a/scripts/negative_rejection_steering_script.py b/scripts/negative_rejection_steering_script.py index b566083..07d2233 100644 --- a/scripts/negative_rejection_steering_script.py +++ b/scripts/negative_rejection_steering_script.py @@ -11,9 +11,9 @@ class NRSScript(scripts.Script): def __init__(self): super().__init__() self.enabled = False - self.skew = 4.0 - self.stretch = 2.0 - self.squash = 0.0 + self.skew = 2.00 + self.stretch = 5.00 + self.squash = 0.75 sorting_priority = 5