未验证 提交 0778b466 编写于 作者: G Guanghua Yu 提交者: GitHub

fix PicoDet train bug (#4439)

上级 dcbb9e87
...@@ -195,6 +195,15 @@ python tools/post_quant.py -c configs/picodet/picodet_s_320_coco.yml \ ...@@ -195,6 +195,15 @@ python tools/post_quant.py -c configs/picodet/picodet_s_320_coco.yml \
</details> </details>
## FAQ
<details>
<summary>Out of memory error.</summary>
Please reduce the `batch_size` of `TrainReader` in config.
</details>
## Cite PP-PiocDet ## Cite PP-PiocDet
If you use PiocDet in your research, please cite our work by using the following BibTeX entry: If you use PiocDet in your research, please cite our work by using the following BibTeX entry:
``` ```
......
...@@ -75,7 +75,7 @@ class PicoDet(BaseArch): ...@@ -75,7 +75,7 @@ class PicoDet(BaseArch):
def get_loss(self, ): def get_loss(self, ):
loss = {} loss = {}
head_outs = self._forward() head_outs, _ = self._forward()
loss_gfl = self.head.get_loss(head_outs, self.inputs) loss_gfl = self.head.get_loss(head_outs, self.inputs)
loss.update(loss_gfl) loss.update(loss_gfl)
total_loss = paddle.add_n(list(loss.values())) total_loss = paddle.add_n(list(loss.values()))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册