mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 07:48:50 +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
@@ -137,17 +137,6 @@ class NGPModel(Model):
|
||||
loss_dict = misc.scale_dict(loss_dict, loss_coefficients)
|
||||
return loss_dict
|
||||
|
||||
def process_outputs_as_images(self, outputs): # pylint:disable=no-self-use
|
||||
"""Do preprocessing to make images valid"""
|
||||
# TODO: make log_test_image_outputs use this directly
|
||||
# TODO: implement across all the different model implementations
|
||||
outputs["accumulation"] = visualization.apply_colormap(outputs["accumulation"])
|
||||
outputs["depth"] = visualization.apply_depth_colormap(
|
||||
outputs["depth"],
|
||||
accumulation=outputs["accumulation"],
|
||||
)
|
||||
outputs["alive_ray_mask"] = visualization.apply_boolean_colormap(outputs["alive_ray_mask"])
|
||||
|
||||
def log_test_image_outputs(self, image_idx, step, batch, outputs):
|
||||
image = batch["image"]
|
||||
rgb = outputs["rgb"]
|
||||
|
||||
Reference in new issue
Block a user