open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark

Home Page:https://mmdetection.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

无法debug到模型源码

whj-tech opened this issue · comments

你好,我是个新手,最近我看到网上好多以前版本的教程都在用mmlab里面的各个模块学习深度学习模型,但是我发现无法我在我要用的模型里面打断点无法进入,而是执行编译好的mmdet里面去了,这样很不适合我这样新手学习模型的每个模块,有什么方法可以解决这个问题吗
例如我最近在学习mask2former,我想看看我数据输入到模型里面,模型的处理细节,就没法做到

"I have the same issue. I placed a breakpoint in base_detr, but the code runs to completion without hitting the breakpoint."

Hi,
You can try debug with the debugProxy.py.
You can use this python file to run the task and debug.
link:https://github.com/chenxinfeng4/LILAB-py/blob/master/debugProxy.py