PaddleDetection icon indicating copy to clipboard operation
PaddleDetection copied to clipboard

请问paddle Det.如何查看自己网络的各层的结构呢?

Open op-newman opened this issue 2 years ago • 3 comments

问题确认 Search before asking

  • [X] 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.

请提出你的问题 Please ask your question

介于YOLOV5/8的,模型加载时候会打印模型的结构 这对我了解网络结构很有帮助,我在paddle中目前还没有找到如何实现的方法。这对于我们改进模型是非常关键的。我需要知道一些打印信息来确定我是否成功改变结构。所以我想请问有该功能吗。或者类似功能也可以。我目前还不会在paddle中操作。

op-newman avatar Jul 17 '23 14:07 op-newman

直接在trainer里加一行 print(self.model)

lyuwenyu avatar Jul 18 '23 02:07 lyuwenyu

非常感谢您的恢复: 请问可以说明一下在哪里加入吗,非常感谢 bopeng

op-newman avatar Jul 18 '23 02:07 op-newman

https://github.com/PaddlePaddle/PaddleDetection/blob/release/2.6/ppdet/engine/trainer.py#L215

在模型初始化之后就可以

lyuwenyu avatar Jul 19 '23 02:07 lyuwenyu