PaddleDetection icon indicating copy to clipboard operation
PaddleDetection copied to clipboard

训练开始时,随机出现SIGSEGV,与opencv无关

Open barry2025 opened this issue 6 years ago • 10 comments

版本:release/0.1; commit id: e5af23e7f1b64c9f8e6a9ddf3088d0c74595a13b 训练脚本: image 运行100次,在第17次出现SIGSEGV,不稳定复现: image

barry2025 avatar Feb 27 '20 04:02 barry2025

could you please take a look at this? @heavengate

willthefrog avatar Feb 27 '20 08:02 willthefrog

您好,麻烦问下您那边的paddle版本是哪个版本,另外ppdet的release/0.2已经发布,后面可以切换release/0.2版本

heavengate avatar Feb 27 '20 08:02 heavengate

使用1.6.1和1.6.3目前都出现过。我先试下release/0.2,多谢

barry2025 avatar Feb 27 '20 12:02 barry2025

1.6版本确实有cuDNN conv随机挂的问题,1.7.0已经发布到了PyPi,可以安装1.7.0试下

heavengate avatar Feb 27 '20 14:02 heavengate

1.7.0版本也会出现,请问下这个确定是跟paddle版本有关吗?

barry2025 avatar Feb 28 '20 08:02 barry2025

image 新的paddle给出来的错误信息添加了检查是否关闭paddle进程

barry2025 avatar Feb 28 '20 10:02 barry2025

看着是conv cuDNN的问题,应该只会在训练中出现,如果不影响速度的话可以在调用fluid.layers.conv2d的接口设置参数use_cudnn=False,paddle原生实现的conv和cudnn实现速度应该相差不大

heavengate avatar Feb 28 '20 11:02 heavengate

看着是conv cuDNN的问题,应该只会在训练中出现,如果不影响速度的话可以在调用fluid.layers.conv2d的接口设置参数use_cudnn=False,paddle原生实现的conv和cudnn实现速度应该相差不大

模型构建代码集中在ppdet/modeling目录下,一般由backbone和head两部分构成,可在对应目录下找到构建脚本修改 conv cuDNN报错问题我们再跟进下

heavengate avatar Feb 28 '20 11:02 heavengate

目前测试cudnn关闭之后,没有中断了,但是目前性能差异明显。P4上 yolov3跑voc数据集,单卡batch_size=8,打开cudnn之后是0.6s/iter,关闭之后是1.s/iter 关闭: image 打开: image

请问下这个时间差异是正常的吗?

barry2025 avatar Mar 04 '20 10:03 barry2025

目前测试cudnn关闭之后,没有中断了,但是目前性能差异明显。P4上 yolov3跑voc数据集,单卡batch_size=8,打开cudnn之后是0.6s/iter,关闭之后是1.s/iter 关闭: image 打开: image

请问下这个时间差异是正常的吗?

应该不至于差别这么大,yolo模型模型速度瓶颈在CPU上数据预处理,可以试下configs/yolov3_reader.py里TrainReader.worker_num调大一些,比如说16试下。

heavengate avatar Mar 06 '20 07:03 heavengate