From 4007564600d98cfa710f26b005a6e27db6ec8b9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ruilong=20Li=28=E6=9D=8E=E7=91=9E=E9=BE=99=29?= Date: Thu, 6 Oct 2022 23:30:24 -0700 Subject: [PATCH] Alpha fix (#56) * fix rendering alpha_thre to 0 by default * bump version --- nerfacc/vol_rendering.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nerfacc/vol_rendering.py b/nerfacc/vol_rendering.py index 2f36dab4..e39e9570 100644 --- a/nerfacc/vol_rendering.py +++ b/nerfacc/vol_rendering.py @@ -21,7 +21,7 @@ def rendering( t_ends: torch.Tensor, # rendering options early_stop_eps: float = 1e-4, - alpha_thre: float = 1e-2, + alpha_thre: float = 0.0, render_bkgd: Optional[torch.Tensor] = None, ) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]: """Render the rays through the radience field defined by `rgb_sigma_fn`. diff --git a/pyproject.toml b/pyproject.toml index df808c29..8d0729f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "nerfacc" -version = "0.1.5" +version = "0.1.6" description = "A General NeRF Acceleration Toolbox." readme = "README.md" authors = [{name = "Ruilong", email = "ruilongli94@gmail.com"}]