Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addressed TODO in full_images_datamanager.py to return image resolution as train rays #3312

Merged
merged 5 commits into from
Aug 21, 2024

Conversation

ajean757
Copy link
Contributor

I noticed a todo when looking at the code base and attempted to make the appropriate changes. I'm essentially returning the resolution of the image, under the assumption that all images in the batch are the same resolution. I left in the default return value of 800 * 800 in case anything doesn't work as intended. To my understanding, splatfacto is the only method that uses the FullImageDataManager, and the function get_train_rays_per_batch() is used for logging metrics to the terminal. This should help display a more accurate count for the "Train Rays / Sec" metric.

Copy link
Collaborator

@kerrj kerrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but change "image being rendered" to "image returned from datamanager" (since this won't always be exactly rendered)

@ajean757
Copy link
Contributor Author

ajean757 commented Jul 22, 2024

fixed it, thanks!

@jb-ye jb-ye force-pushed the full-images-training-rays-fix branch from 8a86b0f to 2251ff3 Compare July 25, 2024 16:23
@kerrj kerrj enabled auto-merge (squash) July 29, 2024 19:48
@kerrj kerrj merged commit 36d5e35 into nerfstudio-project:main Aug 21, 2024
2 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.

None yet

3 participants