(tensor: torch.Tensor, suffix: str)
| 33 | raise RuntimeError("We only support saving rendering of batch size = 1") |
| 34 | |
| 35 | def _save_image_tensor(tensor: torch.Tensor, suffix: str): |
| 36 | np_array = tensor.permute(1, 2, 0).numpy() |
| 37 | io.save_image(np_array, (output_folder / filename).with_suffix(suffix)) |
| 38 | |
| 39 | color = (rendering.color[0].cpu() * 255.0).to(dtype=torch.uint8) |
| 40 | colorized_depth = vis.colorize_depth(rendering.depth[0], val_max=100.0) |