Render given rgbd images.
(
input_rgbd_images: RGBDImage, # (1, q)
output_dir: str,
model_filename: T.Union[str, T.List[str]],
n_output_imgs: int,
output_camera_trajectory_mode: str,
# for pointersect
k: int,
# for comparison with baselines
render_pointersect: bool = True,
render_npbgpp: bool = False,
render_surfel: bool = True,
render_nglod: bool = False,
render_ngp: bool = False,
render_dsnerf: bool = False,
render_ibrnet: bool = False,
render_poisson: bool = True,
densify_neural_points: bool = False,
# other settings
rnd_seed: int = 0,
output_camera_trajectory_params: T.Dict[str, T.Any] = None,
output_camera_setting: T.Dict[str, T.Any] = None,
save_settings: T.Dict[str, T.Any] = None,
pr_setting: T.Dict[str, T.Any] = None,
model_loading_settings: T.Dict[str, T.Any] = None,
max_ray_chunk_size: int = int(1e4), # k=40: int(4e4),
max_pr_chunk_size: int = -1,
max_model_chunk_size: int = -1,
th_hit_prob: float = 0.5,
gt_rgbd_images: T.Optional[RGBDImage] = None,
input_point_cloud_subsample: int = 1,
surfel_point_size: float = 1.,
force_same_intrinsic: bool = False,
voxel_downsample_cell_width: float = -1,
voxel_downsample_sigma: float = 0.5,
neural_point_upsample_ratio_x48: int = 1,
total_nglod_epoch: int = 50,
nglod_test_every_iter: int = 50,
total_ngp_epoch: int = 50,
ngp_test_every_iter: int = 50,
total_dsnerf_iter: int = 50000,
dsnerf_test_every_iter: int = 5000,
test_plane_normal: bool = False,
drop_point_cloud_features: bool = False,
drop_point_cloud_normal: bool = False,
pcd_outlier_removal_radius: float = -1,
pcd_outlier_removal_num_points: int = -1,
ibrnet_chunk_size: int = 4096,
**kwargs,
)
| 449 | |
| 450 | |
| 451 | def render_rgbd( |
| 452 | input_rgbd_images: RGBDImage, # (1, q) |
| 453 | output_dir: str, |
| 454 | model_filename: T.Union[str, T.List[str]], |
| 455 | n_output_imgs: int, |
| 456 | output_camera_trajectory_mode: str, |
| 457 | # for pointersect |
| 458 | k: int, |
| 459 | # for comparison with baselines |
| 460 | render_pointersect: bool = True, |
| 461 | render_npbgpp: bool = False, |
| 462 | render_surfel: bool = True, |
| 463 | render_nglod: bool = False, |
| 464 | render_ngp: bool = False, |
| 465 | render_dsnerf: bool = False, |
| 466 | render_ibrnet: bool = False, |
| 467 | render_poisson: bool = True, |
| 468 | densify_neural_points: bool = False, |
| 469 | # other settings |
| 470 | rnd_seed: int = 0, |
| 471 | output_camera_trajectory_params: T.Dict[str, T.Any] = None, |
| 472 | output_camera_setting: T.Dict[str, T.Any] = None, |
| 473 | save_settings: T.Dict[str, T.Any] = None, |
| 474 | pr_setting: T.Dict[str, T.Any] = None, |
| 475 | model_loading_settings: T.Dict[str, T.Any] = None, |
| 476 | max_ray_chunk_size: int = int(1e4), # k=40: int(4e4), |
| 477 | max_pr_chunk_size: int = -1, |
| 478 | max_model_chunk_size: int = -1, |
| 479 | th_hit_prob: float = 0.5, |
| 480 | gt_rgbd_images: T.Optional[RGBDImage] = None, |
| 481 | input_point_cloud_subsample: int = 1, |
| 482 | surfel_point_size: float = 1., |
| 483 | force_same_intrinsic: bool = False, |
| 484 | voxel_downsample_cell_width: float = -1, |
| 485 | voxel_downsample_sigma: float = 0.5, |
| 486 | neural_point_upsample_ratio_x48: int = 1, |
| 487 | total_nglod_epoch: int = 50, |
| 488 | nglod_test_every_iter: int = 50, |
| 489 | total_ngp_epoch: int = 50, |
| 490 | ngp_test_every_iter: int = 50, |
| 491 | total_dsnerf_iter: int = 50000, |
| 492 | dsnerf_test_every_iter: int = 5000, |
| 493 | test_plane_normal: bool = False, |
| 494 | drop_point_cloud_features: bool = False, |
| 495 | drop_point_cloud_normal: bool = False, |
| 496 | pcd_outlier_removal_radius: float = -1, |
| 497 | pcd_outlier_removal_num_points: int = -1, |
| 498 | ibrnet_chunk_size: int = 4096, |
| 499 | **kwargs, |
| 500 | ): |
| 501 | """Render given rgbd images.""" |
| 502 | |
| 503 | setting_dict = get_settings( |
| 504 | output_camera_trajectory_params=output_camera_trajectory_params, |
| 505 | output_camera_setting=output_camera_setting, |
| 506 | save_settings=save_settings, |
| 507 | pr_setting=pr_setting, |
| 508 | model_loading_settings=model_loading_settings, |
no test coverage detected