Checkpoint Names
Get your checkpoint's filename as an actual STRING
- ckpt_name
- name
ComfyUI is happy to let you load a checkpoint but oddly stingy about letting you read its name anywhere else in the graph. Checkpoint Names exists purely to fix that gap: it's a one-job node that turns a checkpoint filename into a plain string you can actually use downstream.
What it does and why you'd bother
There's no image processing, no model patching, nothing clever here - it's a pass-through. You pick a checkpoint from the dropdown, it hands you back that filename as a STRING. The obvious uses: baking the checkpoint name into your output filenames so you can tell which model made which image later, logging it alongside your generation metadata, or feeding it into a text node (like this pack's own Query Local LLM) so an LLM prompt can reference "generated with <checkpoint>." It's the kind of node you don't think you need until you're three months into a project with forty checkpoints and zero idea which one made your favorite output.
Inputs and outputs
One required input, ckpt_name - the same checkpoint-picker dropdown ComfyUI's built-in loader uses, scanning your models/checkpoints folder. One output, name, a STRING containing whatever you picked. That's the entire node.
The catch: it's not actually linked to your real loader
This is the thing to know before you use it: Checkpoint Names has its own independent dropdown. It is not wired to, and does not read from, whatever checkpoint your Load Checkpoint node has selected. If you change your real loader to a different model and forget to also update this node, you'll get a filename string that's flat-out wrong for the image you just generated - and nothing will warn you, because as far as ComfyUI's concerned they're two completely unrelated widgets that happen to share a dropdown list. Keep them in sync manually, or better, make a habit of setting this one last, right before you run.
Installing it
Via ComfyUI Manager, search "CrasH Utils" and install. Manually:
cd ComfyUI/custom_nodes/
git clone https://github.com/chrish-slingshot/CrasHUtils.git
Restart ComfyUI. No dependencies, nothing to configure.
Common issues
New checkpoint not showing up in the dropdown. This is a standard ComfyUI quirk, not specific to this node - the checkpoint list is built at startup (or on manual refresh in newer frontends), so a file you dropped into models/checkpoints after ComfyUI was already running won't appear until you restart the server or hit the refresh button in the UI.
The string doesn't match what actually generated the image. See above - this node's dropdown is independent of your real loader. There's no automatic sync; you have to set both manually.
Wanting the checkpoint's hash instead of its filename. This node only gives you the raw filename string, not a hash or any other metadata. If you need a content hash for deduplication or provenance tracking, you'll need a different node - Checkpoint Names is deliberately minimal.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| ckpt_name | ckpt_name | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| name | STRING | — |