Skip to content

Fix batch size calculation in Wan VACE pipeline for precomputed embeddings#386

Open
ninatu wants to merge 1 commit intomainfrom
ninatu/wan-vace-batch-size-fix
Open

Fix batch size calculation in Wan VACE pipeline for precomputed embeddings#386
ninatu wants to merge 1 commit intomainfrom
ninatu/wan-vace-batch-size-fix

Conversation

@ninatu
Copy link
Copy Markdown
Collaborator

@ninatu ninatu commented Apr 20, 2026

Derives batch_size from len(prompt_embeds) after prompt encoding rather than len(prompt) beforehand. This resolves a TypeError crash when running inference using only precomputed embeddings (prompt=None and prompt_embeds provided)

…dings

Derives `batch_size` from `len(prompt_embeds)` after prompt encoding
rather than `len(prompt)` beforehand. This resolves a `TypeError` crash
when running inference using only precomputed embeddings
(`prompt=None` and `prompt_embeds` provided)
@ninatu ninatu requested a review from entrpn as a code owner April 20, 2026 13:29
@github-actions
Copy link
Copy Markdown

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.

1 participant