mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 18:44:21 +08:00
Bump instant-ngp optimizer eps for numerical stability (#134)
* bump optimizer eps to 1e-7 for instant-ngp * instant-ngp optimizer eps: 1e-7 -> 1e-4
This commit is contained in:
1 parent
c35bf43255
commit
c5eecaec8d
2 files changed
+4
-3
No files matched your search
@@ -22,4 +22,5 @@ optimizers:
|
||||
fields:
|
||||
optimizer:
|
||||
lr: 1e-2
|
||||
eps: 1e-4 # for float16 stability
|
||||
scheduler: null
|
||||
@@ -101,7 +101,7 @@ class TCNNInstantNGPField(Field):
|
||||
network_config={
|
||||
"otype": "FullyFusedMLP",
|
||||
"activation": "ReLU",
|
||||
"output_activation": "None",
|
||||
"output_activation": "Sigmoid",
|
||||
"n_neurons": hidden_dim_color,
|
||||
"n_hidden_layers": num_layers_color - 1,
|
||||
},
|
||||
@@ -131,8 +131,8 @@ class TCNNInstantNGPField(Field):
|
||||
dtype = directions_flat.dtype
|
||||
d = self.direction_encoding(directions_flat)
|
||||
h = torch.cat([d, density_embedding.view(-1, self.geo_feat_dim)], dim=-1)
|
||||
h = self.mlp_head(h).view(*ray_samples.frustums.directions.shape[:-1], -1).to(dtype)
|
||||
rgb = torch.sigmoid(h)
|
||||
rgb = self.mlp_head(h).view(*ray_samples.frustums.directions.shape[:-1], -1).to(dtype)
|
||||
assert rgb.dtype is torch.float32
|
||||
return {FieldHeadNames.RGB: rgb}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user