From 0f96cb21cb3f7f41d7e132de4bc17424cf0d276d Mon Sep 17 00:00:00 2001 From: Maxed-Out-99 Date: Tue, 15 Jul 2025 21:50:28 -0700 Subject: [PATCH] Remove DummyNegativePrompt node and references Deleted the DummyNegativePrompt class and its mappings from the node registration. This node is no longer needed for KSampler's negative prompt input. --- maxedoutnodes.py | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/maxedoutnodes.py b/maxedoutnodes.py index 4e1d29f..cd6c030 100644 --- a/maxedoutnodes.py +++ b/maxedoutnodes.py @@ -320,37 +320,6 @@ class PromptWithGuidance(ComfyNodeABC): conditioning = node_helpers.conditioning_set_values(conditioning, {"guidance": guidance}) return (conditioning,) -######################################################################################################################## - -class DummyNegativePrompt(ComfyNodeABC): - """ - A placeholder node that encodes an empty string into conditioning - to satisfy KSampler's required negative prompt input. - - This node does *not* expose a text input and is not meant to be modified. - """ - - @classmethod - def INPUT_TYPES(cls): - return { - "required": { - "clip": (IO.CLIP, {"tooltip": "The CLIP model used for encoding the (empty) text."}), - } - } - - RETURN_TYPES = (IO.CONDITIONING,) - FUNCTION = "encode_empty" - CATEGORY = "KJNodes/conditioning" - - def encode_empty(self, clip): - if clip is None: - raise RuntimeError("CLIP model is None. Your checkpoint may not contain a text encoder.") - - # Use a literal space instead of empty string to avoid tokenization issues - tokens = clip.tokenize(" ") - conditioning = clip.encode_from_tokens_scheduled(tokens) - return (conditioning,) - ######################################################################################################################## # NODE MAPPING @@ -360,7 +329,6 @@ NODE_CLASS_MAPPINGS = { "Image Scale To Total Pixels (SDXL Safe)": ImageScaleToTotalPixelsSafe, "Flux Image Scale To Total Pixels (Flux Safe)": FluxImageScaleToTotalPixelsSafe, "Prompt With Guidance (Flux)": PromptWithGuidance, - "Dummy Negative Prompt": DummyNegativePrompt, } NODE_DISPLAY_NAME_MAPPINGS = { @@ -369,5 +337,4 @@ NODE_DISPLAY_NAME_MAPPINGS = { "Image Scale To Total Pixels (SDXL Safe)": "Scale Image (SDXL Safe) MXD", "Flux Image Scale To Total Pixels (Flux Safe)": "Scale Image (Flux Safe) MXD", "Prompt With Guidance (Flux)": "Prompt with Flux Guidance MXD", - "Dummy Negative Prompt": "Dummy Prompt MXD", }