Skip to content
Discussion options

You must be logged in to vote

You generally do not need to include normal node inputs again in fingerprint_inputs().

ComfyUI already includes ordinary non-linked inputs in the node's cache signature. It also tracks linked upstream nodes through their signatures. So if path or strength changes normally, that change is already enough to invalidate the cached result.

For example, this would usually be redundant:

@classmethod
def fingerprint_inputs(cls, path, strength):
    return (path, strength)

The main purpose of fingerprint_inputs() is to account for state that can change without the workflow inputs themselves changing.

A file is a good example.

Suppose the node input is:

path = "clip.mp4"

If the workflow still cont…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jeremysim42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants