ayaanzhaque / instruct-nerf2nerf

Instruct-NeRF2NeRF: Editing 3D Scenes with Instructions (ICCV 2023)
https://instruct-nerf2nerf.github.io/
MIT License
769 stars 64 forks source link

How to debug it through editors such as vscode #27

Closed xzr52 closed 1 year ago

xzr52 commented 1 year ago

This is a great job. May I ask if this code can be debugged through editors such as vscode and how to proceed? If you could answer, I would greatly appreciate it

ayaanzhaque commented 1 year ago

If you install the code from the source, you can make edits to the code in vscode like normal.

xzr52 commented 1 year ago

如果从源代码安装代码,则可以像往常一样在 vscode 中对代码进行编辑。

I want to debug the breakpoint step by step, but I found that I can only start training by entering ns train on the command line. Is there a script that can be executed step by step from the main function? Thank you for your answer

ayaanzhaque commented 1 year ago

@tancik any suggestions here?

xzr52 commented 1 year ago

这里有什么建议吗?

If it's convenient for you, could you write a startup Python script that allows you to execute the project step by step from this script. Or maybe I don't know about nerf_ Can studio support debugging code like this? If so, I would greatly appreciate it if you could let me know. Thank you again for your answer

tancik commented 1 year ago

Does adding a breakpoint directly in the nerfstudio code not work? Have you installed nerfstudio from github instead of pip pypi project?

xzr52 commented 1 year ago

Perhaps I am not very familiar with nerfstudio. May I ask which script should I directly set the corresponding command line parameters in nerfstudio, such as ns train nerfacto -- data/nerfstudio/host? For example, is there a definition of a function like parser。thank for you answer!

ayaanzhaque commented 1 year ago

Well it depends on what you want to debug. If you want to debug code in the pipeline level, you should add your breakpoint there. If you want to debug in the model or trainer level, you can add the breakpoint to that code.

ayaanzhaque commented 1 year ago

Take a look at this issue: https://github.com/ayaanzhaque/instruct-nerf2nerf/issues/22