mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 05:48:57 +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
@@ -313,7 +313,7 @@ class PDFSampler(Sampler):
|
||||
(ray_samples.frustums.starts[..., 1:, 0] + ray_samples.frustums.ends[..., :-1, 0]) / 2.0,
|
||||
ray_samples.frustums.ends[..., -1:, 0],
|
||||
],
|
||||
axis=-1,
|
||||
dim=-1,
|
||||
)
|
||||
|
||||
inds = torch.searchsorted(cdf, u, side="right")
|
||||
|
||||
Reference in new issue
Block a user