nerfstudio-project / nerfacc

A General NeRF Acceleration Toolbox in PyTorch.
https://www.nerfacc.com/
Other
1.37k stars 113 forks source link

typo fixed: check packed_info rather than chunk_cnts #292

Open countywest opened 3 months ago

countywest commented 3 months ago

There is no member named chunk_cnts in the class RaySamples. We should check self.packed_info is not None as we check it for assigning values to spec.chunk_starts.

Before this fix, we cannot use the nerfacc.searchsorted using RaySamples with the following error message. AttributeError: 'RaySamples' object has no attribute 'chunk_cnts' After this fix, nerfacc.searchsorted works fine.