Open qiyang77 opened 6 months ago
That's strange, maybe the result of a bad merge? It should be defined here: https://github.com/nerfstudio-project/nerfstudio/blob/12195f034f51e229bb9bef3b99925d48979b4a6f/nerfstudio/models/nerfacto.py#L131
Dear kerrj, thanks for your response! I may have some clues, the model was trained by nerfstudio 0.3.4 and in that version there is no definition of the camera_optimizer in the "nerfstudio/nerfstudio/models/nerfacto.py".
Now I am using nerfstudio v1.0.2 to load the model, and it looks like some new features didn't be initialized. I print out the "self.config" before this line, and these is indeed no property named "camera_optimizer".
NerfactoModelConfig:
_target: <class 'nerfstudio.models.nerfacto.NerfactoModel'>
appearance_embed_dim: 32
background_color: last_sample
base_res: 16
collider_params: {'far_plane': 6.0, 'near_plane': 2.0}
disable_scene_contraction: False
distortion_loss_mult: 0.002
enable_collider: True
eval_num_rays_per_chunk: 32768
far_plane: 1000.0
features_per_level: 2
hidden_dim: 64
hidden_dim_color: 64
hidden_dim_transient: 64
implementation: tcnn
interlevel_loss_mult: 1.0
log2_hashmap_size: 19
loss_coefficients: {'rgb_loss_coarse': 1.0, 'rgb_loss_fine': 1.0}
max_res: 2048
near_plane: 0.05
num_levels: 16
num_nerf_samples_per_ray: 48
num_proposal_iterations: 2
num_proposal_samples_per_ray: [256
96]
orientation_loss_mult: 0.0001
pred_normal_loss_mult: 0.001
predict_normals: False
prompt: None
proposal_initial_sampler: piecewise
proposal_net_args_list: [{'hidden_dim': 16, 'log2_hashmap_size': 17, 'max_res': 128, 'num_levels': 5, 'use_linear': False}, {'hidden_dim': 16, 'log2_hashmap_size': 17, 'max_res': 256, 'num_levels': 5, 'use_linear': False}]
proposal_update_every: 5
proposal_warmup: 5000
proposal_weights_anneal_max_num_iters: 1000
proposal_weights_anneal_slope: 10.0
use_average_appearance_embedding: True
use_gradient_scaling: False
use_proposal_weight_anneal: True
use_same_proposal_network: False
use_single_jitter: True
Could this be caused by the difference in .yaml files?
Thank you guys. Same problem here. However, I met the issue only when I was rendering the nerfacto-big model. Nerfacto and nerfacto-huge were fine. I trained them with the same version of nerfstudio(1.0.1). I checked the config files, they are the same. I also tried to update the version of ns-studio to 1.0.2, and the problem still occurs.
I trained the model in Windows and now I want to conduct the inference in Linux. However, model initialization was failed. nerfstudio version is 1.0.2, python version is 3.10 Any ideas?