Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Results of Google Colab's example #37

Open
jdiazram opened this issue Jul 19, 2022 · 2 comments
Open

Results of Google Colab's example #37

jdiazram opened this issue Jul 19, 2022 · 2 comments

Comments

@jdiazram
Copy link

jdiazram commented Jul 19, 2022

Hi, nice work with NeRF, but I have a question:
I try to run the example on https://colab.research.google.com/drive/1L6QExI2lw5xhJ-MLlIwpbgf7rxW7fcz3, but even with 92.450 iter the result is close to 0.17 to Val Loss and 7.6 to PSNR without images for coarse and fine. So, why did this happen? or did I lose something? Adjunct an image with this.

Captura de Pantalla 2022-07-19 a la(s) 09 42 44

Another thing I did was uncommenting ReplicateNeRFModel, because another error appeared with this;

Captura de Pantalla 2022-07-20 a la(s) 13 13 36

Only with this action did the example run

model_coarse = ReplicateNeRFModel(
    hidden_size=128,
    num_encoding_fn_xyz=num_encoding_fn_xyz,
    num_encoding_fn_dir=num_encoding_fn_dir,
    include_input_xyz=include_input_xyz,
    include_input_dir=include_input_dir
)
# model_coarse = VeryTinyNeRFModel()
model_coarse.to(device)

# Initialize a fine-resolution model, if specified.
model_fine = ReplicateNeRFModel(
    hidden_size=128,
    num_encoding_fn_xyz=num_encoding_fn_xyz,
    num_encoding_fn_dir=num_encoding_fn_dir,
    include_input_xyz=include_input_xyz,
    include_input_dir=include_input_dir
)
# model_fine = VeryTinyNeRFModel()
model_fine.to(device)

Thx

@Cospui
Copy link

Cospui commented Aug 26, 2022

I also encountered this problem. It seems to be caused by bad initialization and sampling or ReLU so the training is stuck in local optima. Changing the seed (e.g., uncomment seed=1234) will work

@nwangfw
Copy link

nwangfw commented Oct 12, 2022

I also encountered this problem. It seems to be caused by bad initialization and sampling or ReLU so the training is stuck in local optima. Changing the seed (e.g., uncomment seed=1234) will work

Thanks. How did you figure this out? You are amazing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants