mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 15:59:16 +08:00
smaller thing
This commit is contained in:
1 parent
151ed5c867
commit
5b972ed9b0
2 files changed
+5
-4
No files matched your search
@@ -28,7 +28,8 @@ class LERFField(Field):
|
|||||||
|
|
||||||
self.spatial_distortion = spatial_distortion
|
self.spatial_distortion = spatial_distortion
|
||||||
self.clip_encs = torch.nn.ModuleList(
|
self.clip_encs = torch.nn.ModuleList(
|
||||||
[LERFField._get_encoding(16, 128, 16, indim=3), LERFField._get_encoding(128, 512, 16, indim=3)]
|
# [LERFField._get_encoding(16, 512, 16, indim=3)]
|
||||||
|
[LERFField._get_encoding(16, 128, 12, indim=3), LERFField._get_encoding(128, 512, 12, indim=3)]
|
||||||
)
|
)
|
||||||
tot_out_dims = sum([e.n_output_dims for e in self.clip_encs])
|
tot_out_dims = sum([e.n_output_dims for e in self.clip_encs])
|
||||||
|
|
||||||
@@ -40,7 +41,7 @@ class LERFField(Field):
|
|||||||
"activation": "ReLU",
|
"activation": "ReLU",
|
||||||
"output_activation": "None",
|
"output_activation": "None",
|
||||||
"n_neurons": 256,
|
"n_neurons": 256,
|
||||||
"n_hidden_layers": 3,
|
"n_hidden_layers": 4,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -65,7 +66,7 @@ class LERFField(Field):
|
|||||||
"otype": "HashGrid",
|
"otype": "HashGrid",
|
||||||
"n_levels": levels,
|
"n_levels": levels,
|
||||||
"n_features_per_level": 8,
|
"n_features_per_level": 8,
|
||||||
"log2_hashmap_size": 21,
|
"log2_hashmap_size": 19,
|
||||||
"base_resolution": start_res,
|
"base_resolution": start_res,
|
||||||
"per_level_scale": growth,
|
"per_level_scale": growth,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ class LERFModel(NerfactoModel):
|
|||||||
clip_output = self.lerf_field.get_output_from_hashgrid(
|
clip_output = self.lerf_field.get_output_from_hashgrid(
|
||||||
ray_samples,
|
ray_samples,
|
||||||
hashgrid_field,
|
hashgrid_field,
|
||||||
torch.full(scales_shape, s, device=weights.device, dtype=hashgrid_field.dtype),
|
torch.full(scales_shape, scale, device=weights.device, dtype=hashgrid_field.dtype),
|
||||||
)
|
)
|
||||||
clip_output = self.renderer_clip(embeds=clip_output, weights=weights.detach())
|
clip_output = self.renderer_clip(embeds=clip_output, weights=weights.detach())
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user