Debugging toolbox to run?
dahyun-kang opened this issue ยท 2 comments
Hello,
Thank you for open sourcing your project so early! ๐
Could you please share which debugging tool you use for this project or any recommendations?
pdb
seems not working at hand possibly due to the multiprocessing code base.
Hey !
Thanks for your interest :D ! On my side, I usually do not use pdb indeed. I rather debug by putting assert everywhere I can, even for obvious stuff. I admit this is very rudimentary, but actually works quite nicely. One of the reasons I prefer to work with such rudimentary tools (for instance, I save and plot my metrics using numpy and matplotlib instead of more evolved stuff) is that they never let me down !
Regardless, if you really want to debug with pdb, I guess you could quite easily turn the code into a traditional single process one. For instance:
RePRI-for-Few-Shot-Segmentation/src/train.py
Line 328 in 5900a52
could simply become
main_worker(0, 1, args)
and then pdb would probably work. I don't currently have access to my hardware to test this, but let me know if that helps for you ! :)Hello,
Single process run works with pdb
. Thank you for your prompt and kind reply.
Hope you have a great day ๐