Skip to content

rays reshape fix#958

Open
AlisherBlack wants to merge 2 commits into
nerfstudio-project:mainfrom
AlisherBlack:fix-reshape-rays
Open

rays reshape fix#958
AlisherBlack wants to merge 2 commits into
nerfstudio-project:mainfrom
AlisherBlack:fix-reshape-rays

Conversation

@AlisherBlack

@AlisherBlack AlisherBlack commented May 29, 2026

Copy link
Copy Markdown

The eval3d pixel rasterizer (rasterize_to_pixels_eval3d_extra) expects per-ray input flattened as (..., C, H*W, 6): it derives P = rays.shape[-2] and its assert_shape wants rank (num_batch_dims + 3). The public API above takes (and asserts) the image-shaped (..., C, H, W, 6), so flatten the H, W dims here. Row-major flattening matches the kernel's pixel index (row * W + col) and the image-shaped output, so no reshape is needed on the returned colors/alphas.

#967

@AlisherBlack AlisherBlack changed the title hotfix reshape hotfix reshape https://github.com/nerfstudio-project/gsplat/issues/967 Jun 2, 2026
@AlisherBlack AlisherBlack changed the title hotfix reshape https://github.com/nerfstudio-project/gsplat/issues/967 rays reshape fix #967 Jun 2, 2026
@AlisherBlack AlisherBlack changed the title rays reshape fix #967 rays reshape fix Jun 2, 2026
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