未验证 提交 2fa33bcc 编写于 作者: W Wenyu 提交者: GitHub

model params FAQ (#4693)

上级 b16d6cf4
...@@ -309,6 +309,21 @@ Please use `PicoDet-LCNet` model, which has fewer `transpose` operators. ...@@ -309,6 +309,21 @@ Please use `PicoDet-LCNet` model, which has fewer `transpose` operators.
</details> </details>
<details>
<summary>How to count model parameters.</summary>
You can insert below code at [here](https://github.com/PaddlePaddle/PaddleDetection/blob/develop/ppdet/engine/trainer.py#L141) to count learnable parameters.
```python
params = sum([
p.numel() for n, p in self.model. named_parameters()
if all([x not in n for x in ['_mean', '_variance']])
]) # exclude BatchNorm running status
print('params: ', params)
```
</details>
## Cite PP-PicoDet ## Cite PP-PicoDet
If you use PicoDet in your research, please cite our work by using the following BibTeX entry: If you use PicoDet in your research, please cite our work by using the following BibTeX entry:
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册