Skip to content

Conversation

@HarishPermal
Copy link

Normalize category_mask from (H, W, 1) to (H, W) with squeeze(-1) and use [..., None] when blending, to keep shapes consistent with RGB images.

category_mask.numpy_view() returns a 3D array; stacking/broadcasting without squeezing can create invalid 4D shapes and OpenCV/NumPy errors.

@HarishPermal HarishPermal requested a review from PaulTR January 16, 2026 06:01
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