Closed samsara-ku closed 1 year ago
Thanks for your attention!
You should set strict=False
in load_from_checkpoint
.
This error 'Missing key(s) in state_dict' is because the metric 'lpips' is not in the pre-trained models, which will not affect the results.
@JanaldoChen Thanks for your answer. I close this issue.
Hi. First, I'm very happy for your work. Thanks for sharing a nice work.
By the way, I'm not familiar with
pytorch-lighting
package but there is a problem with loading your pre-trained checkpointcheckpoints/male-3-casual/last.ckpt
in this line:The error is like this:
I'm not sure but maybe you did intend to load only a certain part of class
AnimeNeRFSystem
(i.e. self.models), however the pytorch-lightingload_from_checkpoint
fucntion couldn't load appropriately the weights and bias from checkpoint file.I just changed the
strict=True
parameter ofload_from_checkpoint
function to load pre-trained model, and now the question:Is this a right direction for executing code?
If right, could you change your source code?