tiny-cuda-nn
tiny-cuda-nn copied to clipboard
how to set init value to HashGrid
Hallo,
thanks for the excellent work.
I want to set init value to HashGrid, but I don't know how to do it and I have searched the examples and didn't find the solution.
Any help will be appreciated.
If you are in Pytorch, you can just edit the state_dict()
I believe.
In C++, you should be able to access the parameters through these functions: https://github.com/NVlabs/tiny-cuda-nn/blob/v1.6/include/tiny-cuda-nn/object.h#L86-L96 Then I guess you can initialize then arbitarily.
The inference_params
is simply a copy of params
I think based on here:
https://github.com/wilsonCernWq/tiny-cuda-nn/blob/master/include/tiny-cuda-nn/trainer.h#L248-L261
Hi, can I ask how you implemented the custom initialization grid parameters?