Skip to content

Preserve ray and image batch dimensions in the grayscale colormap - #3805

Open
Afloat16 wants to merge 1 commit into
nerfstudio-project:mainfrom
Afloat16:fix/gray-colormap-batch-shape
Open

Afloat16 wants to merge 1 commit into
nerfstudio-project:mainfrom
Afloat16:fix/gray-colormap-batch-shape

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 6, 2026

Copy link
Copy Markdown

The gray branch uses a fixed three-dimensional repeat. A flat ray batch gains a spurious leading dimension, and batches of images fail because repeat receives too few dimensions. Repeat just the single color channel across RGB and retain all leading dimensions. The regression checks a ray batch, an image, and a batch of images through apply_colormap.

Tested with pytest -o addopts= tests/utils/test_grayscale_colormap.py. The new regression fails on main and passes with the fix. The license, Ruff lint and formatting checks pass.

This branch has not been deployed

No deployments
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