Deep Learning framework for Slang, aimed to simplify neural texture compression, neural radiance caching, neural importance sampling, etc., inspired by tcnn and RTXNS.
This library only depends on Slang and has explicit support for Falcor and slangpy
- MLPs
- Neural Spline Flows
- Common loss functions (L1/L2, Relative L1/L2, Relative L2 Luminance)
- Common activation functions (ReLU, Swish, LeakyReLU, etc)
- Adam/AdamW
- Hash Grid 2D/3D
- Spherical Harmonics
- One Blob
The framework is built around three manually-invoked fully-fused kernel invocations:
- Training
- Optimization
- Inference
The implementation of these kernels is highly problem-specific, so this repo only provides utility functions/classes.
For examples using slangpy see the texture compression and the neural density estimation example.
To use this library in Falcor just add it as a submodule and list it in external/CMakeLists.txt:
...
add_subdirectory(tsnn)The shader library will be added automatically.