Closed alvaro-budria closed 1 year ago
Hi @alvaro-budria Thanks a lot for reporting this one! :)
I'm happy to take a PR if you're interested, otherwise I'll meanwhile enqueue it in my bug list
Hi @orperel, I opened a PR with a PyTorch implementation.
Hi, I was checking the PyTorch version of the hash grid encoding in this repo. It is way slower than the CUDA one, but can be useful for experimentation and understanding. However, the current implementation does not seem to be correct.
First, the list of primes contains a non primer number:
265443567
. It should be2654435761
.https://github.com/NVIDIAGameWorks/kaolin-wisp/blob/189d8522c412576dbccb021d84ce3b525af40cb3/wisp/ops/grid.py#L23
Second, the features are not appropriately generated:
https://github.com/NVIDIAGameWorks/kaolin-wisp/blob/189d8522c412576dbccb021d84ce3b525af40cb3/wisp/ops/grid.py#L60-L66
I think the following implementation would be correct: