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

Allow training and rasterizing on a full image background in addition to flat colors #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brianshaler
Copy link

I imagine random_background with a flat color works for most use-cases with masked inputs. I had an instance where I needed to train on opaque RGBs that were pre-composited with a known background that I could also pass in as the background when training.

This is probably more generally useful for rasterization.

Try it out with noise:

background = torch.rand((3, viewpoint_camera.image_height, viewpoint_camera.image_width), dtype=torch.float32, device="cuda")

@aixiaodewugege
Copy link

Thanks for your brilliant work. Does the original version not support a custom background? Is there any document explain it?

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