Closed chenhsuanlin closed 1 year ago
This bug potentially is pytorch-version related. We have pushed a commit in (https://github.com/NVlabs/neuralangelo/commit/c91af8d5098c858df8e8dfa35fba8666d314782b) to fix the issue. Please let us know if you still run into the same problem.
+@mli0603. This is related to multiple reported issues (#62, #75, and potentially others).
There seems to be an issue with the
.state_dict()
method oftorch.nn.Module
classes, which could be a PyTorch bug. Specifically, there seems to be a certain probability where the extracted state dict might not match the (subset of) module parameters, causing the saved checkpoints to be partially corrupted. When this happens in the final layers of the neural SDF/RGB networks, it might result in bad geometry shape (#75) or monotonically gray color (sigmoid(0)=0.5
) for the object (#62).This seems to be reproducible with (using the toy Lego example, pre-processed)
At iteration 2000, the checkpointed parameter
module.neural_sdf.mlp.linear_sdf.weight
would be corrupted.