Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error when more cond masks passed in than batch size #3353

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

Kosinkadink
Copy link
Collaborator

Currently, there is code to handle the case that there are less masks than batch size, but if the masks exceed batch size, the math on line 38 breaks, trying to repeat 0 times (and causing the mask batch size to not match expected length even if the math did work out somehow).

This PR simply caps the mask tensor batch size at the size of input_x, making use of cond masks less frustrating when changing batch size as often happens with video workflows.

@comfyanonymous comfyanonymous merged commit 7990ae1 into comfyanonymous:master Apr 26, 2024
1 check passed
Lin1031 pushed a commit to Lin1031/ComfyUI that referenced this pull request May 14, 2024
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