mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 15:59:16 +08:00
fix bug in ngp sampler
This commit is contained in:
1 parent
3f8f0531d0
commit
8db05d8299
1 file changed
-1
@@ -405,7 +405,6 @@ class NGPSpacedSampler(Sampler):
|
|||||||
scene_scale,
|
scene_scale,
|
||||||
)
|
)
|
||||||
total_samples = max(packed_info[:, -1].sum(), 1)
|
total_samples = max(packed_info[:, -1].sum(), 1)
|
||||||
packed_info = packed_info[:total_samples]
|
|
||||||
origins = origins[:total_samples]
|
origins = origins[:total_samples]
|
||||||
dirs = dirs[:total_samples]
|
dirs = dirs[:total_samples]
|
||||||
starts = starts[:total_samples]
|
starts = starts[:total_samples]
|
||||||
|
|||||||
Reference in new issue
Block a user