Nodes/SeargeSDXL/Magic Box Pipeline Terminator
ComfyUI Node Runs on cloud

Magic Box Pipeline Terminator

Where Searge SDXL's Magic Box stream ends

By SeargeDP·Created 3 years ago·Updated 2 years ago· 874
Magic Box Pipeline Terminator
  • data

    This is the bookend to SeargePipelineStart. If Start puts a crate on the conveyor belt, SeargePipelineTerminator (shown as "Magic Box Pipeline Terminator") is the end of the belt where the crate gets taken off. It's the cap on Searge SDXL's "Magic Box" pipeline - the data stream that carries the entire v4.x workflow's state from stage to stage has to stop somewhere, and this is where.

    Quick background so the node makes sense. Searge SDXL EVOLVED was one of the original all-in-one SDXL workflows for ComfyUI, built in the SDXL 1.0 launch era to run base plus refiner, img2img, inpainting, ControlNet and LoRAs from a single file. Rather than wire dozens of nodes together explicitly, the author routes everything through one SRG_DATA_STREAM. That design needs a defined start and a defined end, and the Terminator is the end.

    How it works

    There's not much machinery to explain, and that's the honest truth about this node: it's a sink. It takes the finished data stream in and produces nothing out. In the Magic Box model, the stream accumulates results as it passes through each stage - the sampled latent, the decoded image, whatever the pipeline built. The Terminator is the node that marks the pipeline as complete and lets the graph resolve. It's flagged as an output node internally, which is why ComfyUI treats it as a real endpoint to execute rather than dead weight it can prune.

    If you've used other node systems that pass a context bundle down a single wire - rgthree's Context nodes do a lighter version of the same idea - the pattern is familiar. The difference is that Searge's whole workflow lives inside the stream, so terminating it cleanly is part of the contract, not an afterthought.

    The inputs and outputs that matter

    This is about as simple as a node gets:

    • data (optional, SRG_DATA_STREAM) - the finished stream from the last Magic Box stage before it. This is the only thing you connect.

    There are no outputs. Nothing comes off the far side; the node exists to close the loop. If you're staring at it expecting an IMAGE or a LATENT to grab, you're looking at the wrong node - the image gets saved earlier in the pipeline by a save/preview stage, not here.

    How to install it

    Same as the rest of the pack. Via ComfyUI Manager, search SeargeSDXL, install, restart. Or manually:

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

    and restart. Manual installers need to run python -m pip install opencv-python once in ComfyUI's Python environment - it's a hard dependency of the pack and a common reason it won't load. Windows users can use the official installer script, which also pulls the SDXL base and refiner checkpoints and the other model files the workflow expects.

    Common issues

    Honestly, this node alone gives almost nobody trouble - there's nothing to misconfigure. The problems you'll actually hit are pack-wide: after a ComfyUI update, an out-of-date Searge checkout throws a Magic Box traceback on load or during execution (the v4.3.1/v4.3.2 releases were compatibility-only fixes for exactly this). If that happens, update the pack first. And follow the README's cardinal rule - run the latest workflow JSON against the latest nodes. The Magic Box stages, Start and Terminator included, assume the version you loaded and the version you installed are the same one.

    CategorySearge/Magic

    Inputs (1)

    NameTypeDefaultDescription
    dataoptSRG_DATA_STREAM

    Outputs (0)

    No outputs