mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-28 03:50:11 +08:00
Adding colormap customization on viewer (#272)
* set up logic for colormap defined by user on viewer * ooops typo * nit * done with defaults * lint
This commit is contained in:
1 parent
26a37e750a
commit
2d3452e5a2
6 files changed
+153
-31
No files matched your search
@@ -125,14 +125,6 @@ class Model(nn.Module):
|
||||
Outputs of model. (ie. rendered colors)
|
||||
"""
|
||||
|
||||
def process_outputs_as_images(self, outputs): # pylint:disable=no-self-use
|
||||
"""Process output images into visualizable colored images"""
|
||||
# TODO override this function elsewhere or do something else for processing images
|
||||
for k, v in outputs.items():
|
||||
if v.shape[-1] == 1:
|
||||
v = torch.tile(v, (1, 1, 3))
|
||||
outputs[k] = v
|
||||
|
||||
@overload
|
||||
def forward(self, ray_bundle: RayBundle, batch: None = None) -> Dict[str, torch.Tensor]:
|
||||
...
|
||||
|
||||
Reference in new issue
Block a user