aim-uofa / AdelaiDet

AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
https://git.io/AdelaiDet
Other
3.39k stars 652 forks source link

detectron2的注册机制 #607

Open sssimpleboy opened 1 year ago

sssimpleboy commented 1 year ago

您好,我跑的是 CondInst 模型 当我在测试的时候,我想看看后处理是怎样的,但我在<class 'adet.modeling.condinst.condinst.CondInst'> 的forward() 方法中写入的代码 例如 exit() 并没有执行。我怀疑这是与detectron2的注册机制有关,我想调试这部分代码,请问我该怎么做呢?

sssimpleboy commented 1 year ago

Hello, I'm running the CondInst model When I was testing, I wanted to see how post-processing worked, but the code I wrote in the forward() method of <class 'adet.modeling.condinst.condinst.CondInst'> didn't execute. I suspect this is related to the registration mechanism of detectron2, I want to debug this part of the code, how do I do it?