cvg / pixel-perfect-sfm

Pixel-Perfect Structure-from-Motion with Featuremetric Refinement (ICCV 2021, Best Student Paper Award)
Apache License 2.0
1.29k stars 132 forks source link

Debug Procedure #117

Closed ItaloFan closed 11 months ago

ItaloFan commented 11 months ago

Confused about the debug procedure of pixsfm. I've searched for pybind11 debug and tried methods mentioned in stackoverflow and nadiah.org. Finally I debug with vscode+Python C++ Debugger extension by BeniBenj. It worked fine for simple example project, while failed for pixsfm. And I've add self.debug=True in setup.py in order to preserve debug info. Maybe PyCharm is the solution?

ItaloFan commented 11 months ago

SORRY for bother, it seems that I mixed debug and release version of .so file. After reinstalling debug version _pixsfm.cpython-37m-x86_64-linux-gnu.so it worked well. This issue can be deleted now.