nmwsharp / diffusion-net

Pytorch implementation of DiffusionNet for fast and robust learning on 3D surfaces like meshes or point clouds.
https://arxiv.org/abs/2012.00888
MIT License
398 stars 50 forks source link

Inference #30

Closed bensch98 closed 1 year ago

bensch98 commented 1 year ago

I'm currently looking where I can speed up my whole inference pipeline. Is the computation of the operators at the end of the dataset.py necessary for pure inference or is it just useful for caching during training?

nmwsharp commented 1 year ago

Hi!

Pre-computing the spectral basis is also necessary for inference. It doesn't necessarily need to be cached/fetched (it could be computed on the fly right before evaluating the network), caching can be disabled by setting op_cache_dir=None in the get_operator()/get_all_operators() functions. But the basis still needs to be computed either way.

If the precomputation cost is a problem for you, there are a few possible workarounds: