GAP-LAB-CUHK-SZ / Total3DUnderstanding

Implementation of CVPR'20 Oral: Total3DUnderstanding: Joint Layout, Object Pose and Mesh Reconstruction for Indoor Scenes from a Single Image
MIT License
419 stars 50 forks source link

vtk headless mode #30

Closed nikhilaravi closed 3 years ago

nikhilaravi commented 3 years ago

Is it possible to run the demo code without requiring a display for vtk for visualization?

alando46 commented 3 years ago

If I understand you correctly, I think you should be able to just comment out the last two lines (or more) from demo.py. You should be able to ship all of the generated assets (demo/outputs/{1-5}) to object storage for later review.

yinyunie commented 3 years ago

Hi,

You can use the offscreen rendering with vtk. check render_window.SetOffScreenRendering(True) and vtk.vtkWindowToImageFilter() for rendering. A rendering demo.py in our new project is at https://github.com/yinyunie/RfDNet.

Best, Yinyu