Compare commits

...
7 Commits
Author SHA1 Message Date
Reithan 2583c237f2 Bump version from 0.7.2 to 0.7.3
Signed-off-by: Reithan <bo122081@hotmail.com>
2026-02-13 17:41:23 -08:00
Reithan c83958c457 Update default parameter values for NRS node and script (#26)
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 <bo122081@hotmail.com>
2026-02-13 17:36:43 -08:00
Reithan a0b2d99bc7 Bump version from 0.7.1 to 0.7.2 2025-12-04 20:44:46 -08:00
Reithan ba145c4722 Add 'chroma' to _RAW_TO_ENUM mapping (#23)
Ad support for chroma as EPS.
2025-12-04 18:29:03 -08:00
Reithan c21dbfe1e5 Update README.md (#21) 2025-09-11 20:27:24 -07:00
Alexander Brown fc38b5c998 Add flux to the Prediction Type inference (#18)
Testing it in Comfy, it seems like it works as `EPS`, though it also
worked with `V`.
2025-07-31 23:23:09 -07:00
Reithan d26fcf6fc8 Update pyproject.toml 2025-07-26 04:44:24 -07:00
4 changed files with 12 additions and 10 deletions
+6 -4
View File
@@ -13,6 +13,8 @@ class PredictionType(Enum):
_RAW_TO_ENUM = {
"eps": PredictionType.EPS,
"epsilon": PredictionType.EPS,
"flux": PredictionType.EPS,
"chroma": PredictionType.EPS,
"v": PredictionType.V,
"v_prediction": PredictionType.V,
"x0": PredictionType.X0,
@@ -23,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"
@@ -218,4 +220,4 @@ class NRS:
NODE_CLASS_MAPPINGS = {
"NRS": NRS,
}
}
+2 -2
View File
@@ -60,8 +60,8 @@ NRS seeks to replace the 'naive' linear interpolation of Classifier Free Guidanc
**Squash** is the speed limit. At 0.0 Squash, each diffusion step receives the full intensity you set from Skew and Stretch, while 1.0 Squash ensures each step has only the original step size output by the model. This setting will only remove intensity unless you have a non-zero Skew value. Squash will 'soften' the effects of Skew and Stretch as it's raised, but the 'removed' Skew and Stretch intensity is replaced by enhanced micro-detailing and 'burn'. Squash should generally be left low and used as a 'finishing' step after dialing in a decent Skew and Stretch value.
## Beginner How-To
1. Set Skew to your normal CFG Scale setting and Stretch to 1/2 your normal CFG Scale. Set Squash to 0.0.<br>
*Alternatively, try starting at 1/1/0.0 to get a baseline.*
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.<br>
*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.
+1 -1
View File
@@ -2,7 +2,7 @@
name = "negative_rejection_steering"
description = "NRS seeks to replace the 'naive' linear interpolation of Classifier Free Guidance with a more nuanced and composable steering of the generation process with better mathematical basis."
authors = [{name = "Bryan O'Malley", email = "bo122081@hotmail.com"}]
version = "0.7.0"
version = "0.7.3"
license = {file = "LICENSE"}
readme = "README.md"
@@ -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