JettHu / ComfyUI_TGate

T-GATE implementation for ComfyUI.
GNU General Public License v3.0
52 stars 8 forks source link

Fix cond-only sampling #7

Closed pamparamm closed 3 months ago

pamparamm commented 3 months ago

n.chunk(2) assumes that we sample both uncond and cond in a single batch, but some nodes (like Perturbed-attention guidance) require only cond for sampling, causing either ValueError: not enough values to unpack (expected 2, got 1) or wrong behavior (depending on the batch size). This PR should fix that issue.