jkulhanek / tetra-nerf

Official implementation for Tetra-NeRF paper - NeRF represented as triangulation of input point cloud.
https://jkulhanek.com/tetra-nerf
MIT License
278 stars 14 forks source link

How to debug in Pycharm professional #24

Closed XIE-ZJU closed 1 year ago

XIE-ZJU commented 1 year ago

Hi, thanks for your great job of tetra-nerf, I have trouble when I try to debug the code in pycharm. As your command for training is, for example, "ns-train tetra-nerf-original --pipeline.model.tetrahedra-path data/blender/lego/pointnerf-0.5.th blender-data --data data/blender/lego", then how can I debug the code in the pycharm, which file should I start with? I'm confused how to fill in the field of scripts. Thanks again for your great work and my debug configuration are like this.

XIE-ZJU commented 1 year ago

2f93ac93e28c42353ad1a08e2435c92

jkulhanek commented 1 year ago

Hi, I am not familiar with PyCharm, but perhaps you want to point it to nerfstudio/scripts/train.py?

XIE-ZJU commented 1 year ago

oh, thanks a lot for your reply, I find it. By the way, I am a beginner in this field, so I wanna konw how the excellent researcher ,like you, will test and debug the code. If it's not in pycharm, is it in vscode or others.

jkulhanek commented 1 year ago

I use either vscode or vim. To debug python I would just put breakpoint() call in the code. Were you asking about debugging the cpp extension?

XIE-ZJU commented 1 year ago

oh, I get it. I just wanted to know the software you familar with. Thanks again, looking forwad to your better works in the future!