PaddlePaddle / PaddleYOLO

🚀🚀🚀 YOLO series of PaddlePaddle implementation, PP-YOLOE+, RT-DETR, YOLOv5, YOLOv6, YOLOv7, YOLOv8, YOLOv10, YOLOX, YOLOv5u, YOLOv7u, YOLOv6Lite, RTMDet and so on. 🚀🚀🚀
https://github.com/PaddlePaddle/PaddleYOLO
GNU General Public License v3.0
547 stars 133 forks source link

NotImplementedError: ProgramTranslator hasn't implemented multiple decorators. Please remove staticmethod in forward #158

Closed STNPSG closed 6 months ago

STNPSG commented 1 year ago

问题确认 Search before asking

请提出你的问题 Please ask your question

def forward(self, x): return self.act(self.bn(self.conv(x)))



NotImplementedError: ProgramTranslator hasn't implemented multiple decorators. Please remove staticmethod in forward
nemonameless commented 1 year ago

报错请按末班提问,说明下如何运行和复现这个问题的谢谢。https://github.com/PaddlePaddle/PaddleYOLO/issues/new?assignees=&labels=type%2Fbug-report%2Cstatus%2Fnew-issue&projects=&template=1_bug-report.yml 同时确认下环境版本正确无误,paddle请安装使用2.4.2以上。