JettHu / ComfyUI_TGate

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

Fix cond-only sampling #7

Closed pamparamm closed 6 months ago

pamparamm commented 6 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.