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 set kernel_size #39

Open
liwenssss opened this issue Jul 26, 2024 · 4 comments
Open

how to set kernel_size #39

liwenssss opened this issue Jul 26, 2024 · 4 comments

Comments

@liwenssss
Copy link

Hi, thanks for your excellent work! I noticed that in your rendering process, you add a kernel_size parameter. However, I couldn't find any issue regarding its settings. It seems that the kernel_size is set to 0. Could you please explain the purpose of this parameter and how I should adjust it based on experimental results?

@BaowenZ
Copy link
Owner

BaowenZ commented Jul 27, 2024

Hi, it is 2D filter size. Since we did not use it in our experiments, we have set it to 0. You could use it to address aliasing caused by low resolution or small 2D kernel size.

@liwenssss
Copy link
Author

Thanks for your reply. Another question, I want to save the rendered normal map. I first normalize the rendered_normal to the [0, 1] range and then use torchvision.utils.save_image to save it. However, the saved result appears yellow or even red. Is this normal?

@BaowenZ
Copy link
Owner

BaowenZ commented Aug 1, 2024

Hi, we show the normal by:

plt.imshow((-render_pkg["normal"].detach().cpu().numpy().transpose(1,2,0)+1)/2)

@liwenssss
Copy link
Author

Hi, I have another question. I want to use your module to get normal vector, But I dont know how to do. Is it any possible to achieve it by your module?

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