ComfyUI Node

Show Text 🐼

Show Text 🐼 — ComfyUI Node Guide

By zhongpei·Created 3 years ago·Updated about a year ago· 386
Show Text 🐼
    • STRING
    text

    What it is

    The inspection node you drop into a graph when you want to actually see what a text-producing chain is outputting, without breaking the flow to check the console. Any of this pack's text nodes - Image to Text's caption, Text to Prompt's rewrite, Translate to Chinese's output - can feed into this, and it displays the string right in the node itself while also passing it along downstream, so you're not forced to choose between seeing it and using it.

    How it works

    It doesn't transform anything. Whatever string comes in gets shown on the node and re-emitted as output. Its main value is being a visible checkpoint in an otherwise invisible chain of text-to-text nodes - useful while you're debugging a multi-step prompt pipeline (caption → rewrite → translate → encode) and need to know which step introduced a problem.

    Inputs and outputs

    • text - the string to display. Single input, no options to configure - there's nothing to tune on a display node.

    Output: STRING, list-typed, and this node is flagged as an output node - meaning it's valid to end a chain here if you just want to see a result and don't need it to go anywhere else.

    Installing it

    Ships with the rest of the Comfyui_image2prompt pack:

    cd ComfyUI/custom_nodes
    git clone https://github.com/zhongpei/Comfyui_image2prompt
    

    Or install via ComfyUI Manager, searching "Comfyui_image2prompt." (The README's own clone command has a typo - a hyphenated URL that doesn't resolve - use the underscored one above.) Restart ComfyUI afterward. No model file involved; this is pure display logic.

    Common issues

    There's very little to break here specifically. The couple of things worth knowing:

    Don't confuse it with Text Box. They look similar sitting next to each other in a graph, but they do opposite jobs - Text Box is where you type text in as a source; Show Text is where you look at text that already exists further upstream. If you're trying to inspect a caption or rewrite and nothing's showing, make sure you wired this node's input from the upstream text output, not the other way around.

    If nothing appears at all, check that the upstream node actually ran and produced output before this one executes - a Show Text with an unconnected or never-triggered input won't show anything, which can look like the node itself is broken when the actual problem is earlier in the chain.

    Pack-level install issues affect this too. If the node doesn't show up in your node list at all, that's almost always a dependency conflict somewhere in this pack's install rather than anything specific to Show Text - check the ComfyUI console log at startup for an import error tied to Comfyui_image2prompt before troubleshooting this node in isolation.

    Categoryfofo🐼/tools

    Inputs (1)

    NameTypeDefaultDescription
    textSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING