From 8db05d829923bb16d70f6143b538de481c561762 Mon Sep 17 00:00:00 2001 From: Ruilong Li Date: Mon, 25 Jul 2022 17:55:30 +0000 Subject: [PATCH] fix bug in ngp sampler --- pyrad/graphs/modules/ray_sampler.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pyrad/graphs/modules/ray_sampler.py b/pyrad/graphs/modules/ray_sampler.py index 2306cee70..382b9a85a 100644 --- a/pyrad/graphs/modules/ray_sampler.py +++ b/pyrad/graphs/modules/ray_sampler.py @@ -405,7 +405,6 @@ class NGPSpacedSampler(Sampler): scene_scale, ) total_samples = max(packed_info[:, -1].sum(), 1) - packed_info = packed_info[:total_samples] origins = origins[:total_samples] dirs = dirs[:total_samples] starts = starts[:total_samples]