Skip to content

Commit

Permalink
Add color transient config to nerfacto
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawars committed Jan 15, 2025
1 parent 0b1bfe1 commit 0dce69a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nerfstudio/models/nerfacto.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,12 @@ class NerfactoModelConfig(ModelConfig):
"""Dimension of hidden layers"""
hidden_dim_color: int = 64
"""Dimension of hidden layers for color network"""
hidden_dim_transient: int = 64
use_transient_embedding: bool = True
"""Whether to use an transient embedding."""
hidden_dim_transient: int = 128
"""Dimension of hidden layers for transient network"""
transient_embed_dim: int = 16
"""Dimension of the transient embedding."""
num_levels: int = 16
"""Number of levels of the hashmap for the base mlp."""
base_res: int = 16
Expand Down Expand Up @@ -162,7 +166,9 @@ def populate_modules(self):
features_per_level=self.config.features_per_level,
log2_hashmap_size=self.config.log2_hashmap_size,
hidden_dim_color=self.config.hidden_dim_color,
use_transient_embedding=self.config.use_transient_embedding,
hidden_dim_transient=self.config.hidden_dim_transient,
transient_embedding_dim=self.config.transient_embed_dim,
spatial_distortion=scene_contraction,
num_images=self.num_train_data,
use_pred_normals=self.config.predict_normals,
Expand Down

0 comments on commit 0dce69a

Please sign in to comment.