autonomousvision / factor-fields

[SIGGRAPH 2023] We provide a unified formula for neural fields (Factor Fields) and a novel dictionary factorization (Dictionary Fields)
https://apchenstu.github.io/FactorFields/
MIT License
201 stars 10 forks source link

Loading model failed in train_across_scene.py #9

Closed onpix closed 1 year ago

onpix commented 1 year ago
RuntimeError: Error(s) in loading state_dict for FactorFields:
        Missing key(s) in state_dict: "coeffs.1", "coeffs.2", "coeffs.3", "coeffs.4", "coeffs.5", "coeffs.6", "coeffs.7", "coeffs.8", "coeffs.9", "coeffs.10", "coeffs.11", "coeffs.12", "coeffs.13", "coeffs.14", "coeffs.15", "coeffs.16", "coeffs.17", "coeffs.18", "coeffs.19", "coeffs.20", "coeffs.21", "coeffs.22", "coeffs.23", "coeffs.24", "coeffs.25", "coeffs.26", "coeffs.27", "coeffs.28", "coeffs.29", "coeffs.30", "coeffs.31", "coeffs.32", "coeffs.33", "coeffs.34", "coeffs.35", "coeffs.36", "coeffs.37", "coeffs.38", "coeffs.39", "coeffs.40", "coeffs.41", "coeffs.42", "coeffs.43", "coeffs.44", "coeffs.45", "coeffs.46", "coeffs.47", "coeffs.48", "coeffs.49", "coeffs.50", "coeffs.51", "coeffs.52", "coeffs.53", "coeffs.54", "coeffs.55", "coeffs.56", "coeffs.57", "coeffs.58", "coeffs.59", "coeffs.60", "coeffs.61", "coeffs.62", "coeffs.63", "coeffs.64", "coeffs.65", "coeffs.66", "coeffs.67", "coeffs.68", "coeffs.69", "coeffs.70", "coeffs.71", "coeffs.72", "coeffs.73", "coeffs.74", "coeffs.75", "coeffs.76", "coeffs.77", "coeffs.78", "coeffs.79", "coeffs.80", "coeffs.81", "coeffs.82", "coeffs.83", "coeffs.84", "coeffs.85", "coeffs.86", "coeffs.87", "coeffs.88", "coeffs.89", "coeffs.90", "coeffs.91", "coeffs.92", "coeffs.93", "coeffs.94", "coeffs.95", "coeffs.96", "coeffs.97", "coeffs.98", "coeffs.99". 

This error is caused by FactorFields.cal_mean_coef, which will remove these keys of the state dict.