Skip to content

Fix Noise_EmptyNoise when using nested latents#12089

Merged
comfyanonymous merged 2 commits intoComfy-Org:masterfrom
kijai:emptyh_nested_tensor_fix
Jan 27, 2026
Merged

Fix Noise_EmptyNoise when using nested latents#12089
comfyanonymous merged 2 commits intoComfy-Org:masterfrom
kijai:emptyh_nested_tensor_fix

Conversation

@kijai
Copy link
Contributor

@kijai kijai commented Jan 26, 2026

Fixes the following issue when doing split sampling with SamplerCustom and LTX2.

 File "N:\AI\ComfyUI\comfy\samplers.py", line 745, in sample
    noise = model_wrap.inner_model.model_sampling.noise_scaling(sigmas[0], noise, latent_image, self.max_denoise(model_wrap, sigmas))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "N:\AI\ComfyUI\comfy\model_sampling.py", line 72, in noise_scaling
    return sigma * noise + (1.0 - sigma) * latent_image
           ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RuntimeError: The size of tensor a (1024) must match the size of tensor b (131200) at non-singleton dimension 2

@comfyanonymous comfyanonymous merged commit ad53e78 into Comfy-Org:master Jan 27, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants