mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
fix axis arg to dim for pytorch funcs
This commit is contained in:
1 parent
ff4f1bb421
commit
1f38240212
6 files changed
+15
-13
No files matched your search
@@ -117,7 +117,7 @@ class RaySamples(TensorDataclass):
|
||||
# mip-nerf version of transmittance calculation:
|
||||
transmittance = torch.cumsum(delta_density[..., :-1, :], dim=-2)
|
||||
transmittance = torch.cat(
|
||||
[torch.zeros((*transmittance.shape[:1], 1, 1)).to(densities.device), transmittance], axis=-2
|
||||
[torch.zeros((*transmittance.shape[:1], 1, 1)).to(densities.device), transmittance], dim=-2
|
||||
)
|
||||
transmittance = torch.exp(-transmittance) # [..., "num_samples"]
|
||||
|
||||
|
||||
Reference in new issue
Block a user