Skip to content

Fix: Apply pre_attn_layout in torch/vanilla attention paths#327

Open
pranavchugh1 wants to merge 1 commit intoWan-Video:mainfrom
pranavchugh1:fix-attention-layout
Open

Fix: Apply pre_attn_layout in torch/vanilla attention paths#327
pranavchugh1 wants to merge 1 commit intoWan-Video:mainfrom
pranavchugh1:fix-attention-layout

Conversation

@pranavchugh1
Copy link

Problem

Pipeline crashes with ValueError when segmentation fails to detect a subject, resulting in an empty mask.

Solution

Added check for empty coordinate arrays in get_mask_boxes(). Returns full-frame fallback bbox instead of crashing.

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