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

How to render images with white background? #119

Open
LordLiang opened this issue Dec 8, 2023 · 1 comment
Open

How to render images with white background? #119

LordLiang opened this issue Dec 8, 2023 · 1 comment

Comments

@LordLiang
Copy link

Wonderful work!
I want to know how to render images with white background? The default bg color of "decode_latent_images" is black. How should I change the code? Thank you!

@SOTAMak1r
Copy link

My solution is to change the line 125 in shap-e/shap_e/models/nerf/ray.py:

results.output.channels = results.output.channels + results.transmittance * void_model(Query(origin, direc))

into:

results.output.channels = results.output.channels + results.transmittance * torch.ones_like(results.output.channels)

You can give it a try.

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

No branches or pull requests

2 participants