wire icon indicating copy to clipboard operation
wire copied to clipboard

Missing Nerf Code

Open harshaUwm163 opened this issue 3 years ago • 7 comments

Hello,

Thank you for the amazing project! Is there a plan to release the code for the NeRF experiments, you mention in the paper?

harshaUwm163 avatar Feb 26 '23 01:02 harshaUwm163

Thank you for the note. We made only minor modifications to the PyTorch NGP code here: https://github.com/ashawkey/torch-ngp. Specifically, we removed positional encoding and modified the MLPs to have WIRE nonlinearity.

We will post the code in the upcoming weeks.

vishwa91 avatar Feb 27 '23 13:02 vishwa91

Gotcha! Thank you for the reply!

harshaUwm163 avatar Feb 28 '23 01:02 harshaUwm163

Hey, We cannot reproduce the results regarding NeRF. Wondering are there other special modifications? Looks like simply replacing nn.Linear with ComplexGabor doesn't work. To get sigma, I called trunc_exp(h[..., 0].real), is this what you have done? For the number of layers you mentioned in the paper (4 layers), does this number correspond to all layers, or just the sigma_net in torch-ngp?

hyperzy avatar Aug 22 '23 03:08 hyperzy

Thank you for the question.

Please check the modified network.py file in torch-ngp for further details. Here are some of the additional settings in the main script

opt.lr = 4e-4 
opt.sigma = 40
opt.omega = 40   

You may want to play with some more settings for sigma and omega. Make sure omega/sigma < 2 to ensure the optimization does not diverge.

Hope that helps!

vishwa91 avatar Aug 25 '23 16:08 vishwa91

Thanks for providing the script. This is really useful!

hyperzy avatar Aug 26 '23 15:08 hyperzy

Hi As you described, I modified sigma's encoder and mlp. The coding mode of encoder was changed to None, which stands for no position coding.

mlp adds your ComplexGabor and changes the number of layers to 4 and sigma and omega to 40.

image But the results are very poor. Is there anything we need to fix? image

XLR-man avatar Nov 23 '23 06:11 XLR-man

您好 ,正如您所描述的,我修改了 sigma 的编码器和 mlp。编码器的编码方式改为 None,即无位置编码。

mlp 添加您的 ComplexGabor 将层数更改为 4,将 sigma 和 omega 更改为 40。

图像 但结果很差。有什么需要我们解决的吗? 图像

Have you resolved this issue?

1372484434 avatar Jan 04 '24 18:01 1372484434