mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 13:59:10 +08:00
Add missing activation (#933)
This commit is contained in:
1 parent
3e52aebd9a
commit
4b65180a57
5 files changed
+11
No files matched your search
@@ -67,17 +67,20 @@ class SemanticNerfField(Field):
|
||||
num_layers=base_mlp_num_layers,
|
||||
layer_width=base_mlp_layer_width,
|
||||
skip_connections=skip_connections,
|
||||
out_activation=nn.ReLU(),
|
||||
)
|
||||
self.mlp_head = MLP(
|
||||
in_dim=self.mlp_base.get_out_dim() + self.direction_encoding.get_out_dim(),
|
||||
num_layers=head_mlp_num_layers,
|
||||
layer_width=head_mlp_layer_width,
|
||||
out_activation=nn.ReLU(),
|
||||
)
|
||||
self.mlp_semantic = MLP(
|
||||
in_dim=self.mlp_head.get_out_dim(),
|
||||
layer_width=self.mlp_head.layer_width // 2,
|
||||
num_layers=1,
|
||||
activation=nn.ReLU(),
|
||||
out_activation=nn.ReLU(),
|
||||
)
|
||||
self.field_head_density = DensityFieldHead(in_dim=self.mlp_base.get_out_dim())
|
||||
self.field_head_rgb = RGBFieldHead(in_dim=self.mlp_head.get_out_dim())
|
||||
|
||||
Reference in new issue
Block a user