mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-14 11:54:01 +08:00
Merge branch 'main' into update-scheduler
This commit is contained in:
4 files changed
+10
-4
No files matched your search
@@ -180,7 +180,7 @@ class SHRenderer(nn.Module):
|
||||
components = components_from_spherical_harmonics(levels=levels, directions=directions)
|
||||
|
||||
rgb = sh * components[..., None, :] # [..., num_samples, 3, sh_components]
|
||||
rgb = torch.sum(sh, dim=-1) + 0.5 # [..., num_samples, 3]
|
||||
rgb = torch.sum(rgb, dim=-1) # [..., num_samples, 3]
|
||||
|
||||
if self.activation is not None:
|
||||
rgb = self.activation(rgb)
|
||||
|
||||
@@ -117,7 +117,13 @@ def run_hloc(
|
||||
camera_model=camera_model.value
|
||||
)
|
||||
if refine_pixsfm:
|
||||
sfm = PixSfM({"dense_features": {"max_edge": 1024}})
|
||||
sfm = PixSfM(
|
||||
conf={
|
||||
"dense_features": {"use_cache": True},
|
||||
"KA": {"dense_features": {"use_cache": True}, "max_kps_per_problem": 1000},
|
||||
"BA": {"strategy": "costmaps"},
|
||||
}
|
||||
)
|
||||
refined, _ = sfm.reconstruction(
|
||||
sfm_dir,
|
||||
image_dir,
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
"""Helper utils for processing polycam data into the nerfstudio format."""
|
||||
"""Helper utils for processing reality capture data into the nerfstudio format."""
|
||||
|
||||
import csv
|
||||
import json
|
||||
|
||||
@@ -40,7 +40,7 @@ def test_sh_renderer():
|
||||
sh_renderer = renderers.SHRenderer()
|
||||
|
||||
rgb = sh_renderer(sh=sh, directions=directions, weights=weights)
|
||||
assert torch.max(rgb) > 0.9
|
||||
assert torch.max(rgb) > 0.7
|
||||
|
||||
|
||||
def test_acc_renderer():
|
||||
|
||||
Reference in new issue
Block a user