sipie800 / ComfyUI-PuLID-Flux-Enhanced

Apache License 2.0
67 stars 8 forks source link

`Boolean value of Tensor with more than one value is ambiguous` when batch size >1 #19

Open 925-Studio opened 3 weeks ago

925-Studio commented 3 weeks ago

Sorry for opening a new issue but I have encountered a new problem. If I set the batch size > 1, then the generation will break and the error info shows: RuntimeError: Boolean value of Tensor with more than one value is ambiguous.

The only solution for now is keep the batch size to 1 or bypass this PuLID node. I hope you can share some tips to avoid this situation. Thanks for your time.

nominalgeek commented 3 weeks ago

Looks like an existing when CFG>1. This becomes more of an issue now with flux because of the de-distilled variants.

issue https://github.com/sipie800/ComfyUI-PuLID-Flux-Enhanced/issues/4

nominalgeek commented 3 weeks ago

https://github.com/balazik/ComfyUI-PuLID-Flux/commit/b9a5c01d6a9bb07b59c673ab52fe0e67e2822b58

Looks like balazik ran into this too. I hope that helps. Is there a better fix?

925-Studio commented 2 weeks ago

balazik/ComfyUI-PuLID-Flux@b9a5c01

Looks like balazik ran into this too. I hope that helps. Is there a better fix?

Yep, seems the balazik's nodes doesn't have this issue. So far it's the only solution I can get. Thank you for sharing this.