Nodes/SeargeSDXL/Style Preprocessor (wip)
ComfyUI Node Runs on cloud

Style Preprocessor (wip)

The unfinished style node Searge left behind

By SeargeDP·Created 3 years ago·Updated 2 years ago· 874
Style Preprocessor (wip)
  • inputs
  • inputs
active_style_name
style_definitions[unfinished work in progress]

The most honest thing about this node is printed right on it. Its style_definitions field defaults to the text [unfinished work in progress], and its display name is literally "Style Preprocessor (wip)." This is an abandoned feature, and you should treat it as one. It lives in Searge/_deprecated_/UI for good reason.

Here's the story, straight from the README. The v4.0 rewrite of Searge SDXL shipped without prompt styling - the planned "ability to load styles from a template file and apply them to prompts" got cut so the release could land sooner. This node is a fragment of that first, incomplete attempt at the styles system. The feature did eventually arrive, but as a different, finished node: SeargePromptStyles ("Prompt Styles v2"). That's the one you want. This one is the false start.

How it works

As far as the intended design went, a style preprocessor takes a parameter bundle and a chosen style name, looks the style up in a block of style definitions, and applies it to the parameters before they reach the rest of the pipeline. You can see the skeleton of that in the inputs: a PARAMETER_INPUTS stream, an active style to select, and a text blob meant to hold the style templates. But it was never finished - the default definitions text says so - so there's nothing here worth wiring into a real workflow.

If you're reverse-engineering an old Searge graph and this node is present but doing nothing meaningful, that's expected. It was work in progress that got superseded rather than completed.

The inputs and outputs that matter

For completeness, since it does technically have a schema:

  • inputs (PARAMETER_INPUTS, required) - the parameter stream in.
  • active_style_name (STRING, default empty) - which style to apply.
  • style_definitions (multiline STRING, default [unfinished work in progress]) - where style templates would live. The default value is the tell.
  • output inputs (PARAMETER_INPUTS) - the parameter stream back out.

Don't build around these. The finished styles feature is in SeargePromptStyles, and the modern workflow uses that instead.

How to install it

It ships inside the Searge SDXL pack; there's no separate install. ComfyUI Manager: search SeargeSDXL, install, restart. Or:

cd ComfyUI/custom_nodes
git clone https://github.com/SeargeDP/SeargeSDXL.git

then restart. Manual installers need python -m pip install opencv-python run once in ComfyUI's Python environment, or the pack won't load.

Common issues

The main "issue" is using it at all. It's a deprecated, unfinished node - if you're reaching for prompt styles, use SeargePromptStyles, which is the completed v2 of this idea. If you found it in an old workflow and it seems inert, that's not a bug, it's the state the author left it in. And the standard pack caveat holds: after a ComfyUI update, an out-of-date Searge checkout can throw on load, so update the pack (the v4.3.x releases were compatibility-only) and keep the workflow JSON on the same version as the nodes.

CategorySearge/_deprecated_/UI

Inputs (3)

NameTypeDefaultDescription
inputsPARAMETER_INPUTS
active_style_nameSTRING
style_definitionsSTRING[unfinished work in progress]

Outputs (1)

NameTypeDescription
inputsPARAMETER_INPUTS