Skip to content

Question about loading masks from nerf_synthetic dataset#227

Open
Zerui-Yu wants to merge 1 commit into
hbb1:mainfrom
Zerui-Yu:main
Open

Question about loading masks from nerf_synthetic dataset#227
Zerui-Yu wants to merge 1 commit into
hbb1:mainfrom
Zerui-Yu:main

Conversation

@Zerui-Yu

Copy link
Copy Markdown

Hi, I found a small issue in dataset_readers.py that is causing the viewpoint_cam.gt_alpha_mask to not be fetched correctly when reading a 4-channel RGBA image in a nerf_synthetic dataset. Specifically, the original dataset_readers.py reads the image using PIL, and after processing the background repackages it as an RGB image (discarding the Alpha channel) passing it into camera_utils.py to continue processing.

All that is needed is to change the RGB file to an RGBA file.

Good luck and have a nice day!

Fixed a simple bug about masks in the nerf_synthetic dataset
@hbb1

hbb1 commented Jun 19, 2025

Copy link
Copy Markdown
Owner

Thank you for pointing out the issue. I will check it soon!

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.

2 participants