ashawkey / torch-ngp

A pytorch CUDA extension implementation of instant-ngp (sdf and nerf), with a GUI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The value of `self.cascade` becomes 0 when `bound <= 0.5`, causing errors

ShenhanQian opened this issue · comments

A remedy could be modifying

self.cascade = 1 + math.ceil(math.log2(bound))

to

self.cascade = max(1 + math.ceil(math.log2(bound)), 1)