Skip to content

fix(yolo pipeline): handle 5D batch tensors in graph stream queues#742

Merged
leszko merged 1 commit intomainfrom
rafal/fix-yolo
Mar 26, 2026
Merged

fix(yolo pipeline): handle 5D batch tensors in graph stream queues#742
leszko merged 1 commit intomainfrom
rafal/fix-yolo

Conversation

@leszko
Copy link
Copy Markdown
Collaborator

@leszko leszko commented Mar 26, 2026

In Perform Mode, preprocessor outputs like vace_input_frames and vace_input_masks bypass stream queues and are passed as raw [B,C,F,H,W] tensors via the parameter path. In Graph Mode (Workflow Builder), these ports have explicit stream edges, so the queue system tried to apply uint8 conversion and dim-0 frame splitting—which mangles 5D tensors.

Convert 5D [B,C,F,H,W] tensors to [B*F,H,W,C] frame format before queuing, and add mask preprocessing in PreprocessVideoBlock so masks arriving as frame lists are properly assembled into [B,1,F,H,W] tensors.

In Perform Mode, preprocessor outputs like vace_input_frames and
vace_input_masks bypass stream queues and are passed as raw [B,C,F,H,W]
tensors via the parameter path. In Graph Mode (Workflow Builder), these
ports have explicit stream edges, so the queue system tried to apply
uint8 conversion and dim-0 frame splitting—which mangles 5D tensors.

Convert 5D [B,C,F,H,W] tensors to [B*F,H,W,C] frame format before
queuing, and add mask preprocessing in PreprocessVideoBlock so masks
arriving as frame lists are properly assembled into [B,1,F,H,W] tensors.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Signed-off-by: Rafal Leszko <[email protected]>
@github-actions
Copy link
Copy Markdown
Contributor

🚀 fal.ai Preview Deployment

App ID daydream/scope-pr-742--preview
WebSocket wss://fal.run/daydream/scope-pr-742--preview/ws
Commit e8355cf

Testing

Connect to this preview deployment by running this on your branch:

uv run build && SCOPE_CLOUD_APP_ID="daydream/scope-pr-742--preview/ws" uv run daydream-scope

🧪 E2E tests will run automatically against this deployment.

@github-actions
Copy link
Copy Markdown
Contributor

❌ E2E Tests failed

Status failed
fal App daydream/scope-pr-742--preview
Run View logs

Test Artifacts

Check the workflow run for screenshots, traces, and failure details.

@leszko leszko merged commit 5d2640a into main Mar 26, 2026
8 of 9 checks passed
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