mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 14:58:55 +08:00
Implement nerfacto alpha transparency training (#2165)
* Implement nerfacto alpha transparency training * Stop adding all ones alpha channel and clean up blend_background * Make background_color a required argument in blend_background * Enable alpha transparent training by default * Improve background_color typing * Blend uniform background color for metric computation * Fix typing error * Clean up typing * Fix background_color to outputs assignment * Model outputs returns unblended RGB (black bg) for random bg * Update renderers * Fix comments * Add support for transparent BG for other methods * Minor refac * Fix get_background_color * Fix typing error for blend_background * Fix comments * Export utils support transparency * Pylint fix * Fix pcd export masking * Filter pcd view directions based on opacity * Clean up get_rgba_image --------- Co-authored-by: Jonas Kulhanek <jonas.kulhanek@live.com>
This commit is contained in:
1 parent
dbd4092dbb
commit
9f487a464f
14 files changed
+225
-45
No files matched your search
@@ -331,8 +331,12 @@ def export_tsdf_mesh(
|
||||
depth_output_name=depth_output_name,
|
||||
rendered_resolution_scaling_factor=1.0 / downscale_factor,
|
||||
disable_distortion=True,
|
||||
return_rgba_images=True,
|
||||
)
|
||||
|
||||
# TODO: this can be done better by removing transparent points from the TSDF
|
||||
color_images = [x[..., :3] for x in color_images]
|
||||
|
||||
# camera extrinsics and intrinsics
|
||||
c2w: Float[Tensor, "N 3 4"] = cameras.camera_to_worlds.to(device)
|
||||
# make c2w homogeneous
|
||||
|
||||
Reference in new issue
Block a user