Comfy-Org / Comfy-Org/ComfyUI

[Node in Bypass mode] Empty Latent Image

Open
#14,301 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

Hello,

Why does the Empty Latent Image node suddenly return a number from its latent output when it is in Bypass mode? More specifically, it returns the incoming `width`.

This logic is very strange, and it breaks quite a lot downstream. There are nodes that expect either a latent or `None` if the previous nodes are in bypass mode. Such nodes simply throw the error: “Return type mismatch between linked nodes”.

Passing through a reference to the input object is an excellent solution, but in my opinion it should only work if the input and output types match, OR if one of them is `ANY`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.