From 2513f35ac77dae81a5e008897050b94a442ee593 Mon Sep 17 00:00:00 2001 From: Guanghua Yu <742925032@qq.com> Date: Wed, 3 Nov 2021 14:20:55 +0800 Subject: [PATCH] fix PicoDet train bug (#4438) --- configs/picodet/README.md | 9 +++++++++ ppdet/modeling/architectures/picodet.py | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/configs/picodet/README.md b/configs/picodet/README.md index b4df109fe..fb7cb4261 100644 --- a/configs/picodet/README.md +++ b/configs/picodet/README.md @@ -195,6 +195,15 @@ python tools/post_quant.py -c configs/picodet/picodet_s_320_coco.yml \ +## FAQ + +
+Out of memory error. + +Please reduce the `batch_size` of `TrainReader` in config. + +
+ ## Cite PP-PiocDet If you use PiocDet in your research, please cite our work by using the following BibTeX entry: ``` diff --git a/ppdet/modeling/architectures/picodet.py b/ppdet/modeling/architectures/picodet.py index 9c67005b0..cd807a9fa 100644 --- a/ppdet/modeling/architectures/picodet.py +++ b/ppdet/modeling/architectures/picodet.py @@ -75,7 +75,7 @@ class PicoDet(BaseArch): def get_loss(self, ): loss = {} - head_outs = self._forward() + head_outs, _ = self._forward() loss_gfl = self.head.get_loss(head_outs, self.inputs) loss.update(loss_gfl) total_loss = paddle.add_n(list(loss.values())) -- GitLab