daniilidis-group / neural_renderer

A PyTorch port of the Neural 3D Mesh Renderer
Other
1.13k stars 252 forks source link

How to use the .so in libtorch #104

Open ALLinLLM opened 3 years ago

ALLinLLM commented 3 years ago

Thanks for bringing us the first Neural Renderer! I want to use your great work with a c++ environment, so I export the 3d reconstruct to jit model first, and then use libtorch to load the .pt files. However, when I want to export the render code to jit mode, it failed because of the unsupported autograd.Function operator.

So I want to directly link the .so files to my c++ app, build I cannot find the head file of the .so.

Any one can help to use the 3d render with c++ environment?