Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

python api训练过程报错

Open bushidonggua opened this issue 9 years ago • 6 comments

按照demo修改数据集和验证集: demo源码路径:https://github.com/PaddlePaddle/models/blob/develop/image_classification/

错误:

[INFO 2017-08-08 19:47:42,445 layers.py:2255] output for __conv_0__: c = 96, h = 54, w = 54, size = 279936
[INFO 2017-08-08 19:47:42,447 layers.py:2380] output for __pool_0__: c = 96, h = 27, w = 27, size = 69984
[INFO 2017-08-08 19:47:42,448 layers.py:2255] output for __conv_1__: c = 256, h = 27, w = 27, size = 186624
[INFO 2017-08-08 19:47:42,450 layers.py:2380] output for __pool_1__: c = 256, h = 13, w = 13, size = 43264
[INFO 2017-08-08 19:47:42,451 layers.py:2255] output for __conv_2__: c = 384, h = 13, w = 13, size = 64896
[INFO 2017-08-08 19:47:42,453 layers.py:2255] output for __conv_3__: c = 384, h = 13, w = 13, size = 64896
[INFO 2017-08-08 19:47:42,454 layers.py:2255] output for __conv_4__: c = 256, h = 13, w = 13, size = 43264
[INFO 2017-08-08 19:47:42,455 layers.py:2380] output for __pool_2__: c = 256, h = 6, w = 6, size = 9216
I0808 19:47:42.893196 18189 GradientMachine.cpp:85] Initing parameters..
I0808 19:47:48.673799 18189 GradientMachine.cpp:92] Init parameters done.

Pass 0, Batch 0, Cost 19.511793, {'classification_error_evaluator': 0.9921875}

Pass 0, Batch 1, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 2, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 3, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 4, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 5, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 6, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 7, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 8, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 9, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 10, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 11, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 12, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 13, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 14, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 15, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 16, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 17, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 18, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 19, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 20, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 21, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 22, Cost 0.000000, {'classification_error_evaluator': 0.0}

Pass 0, Batch 23, Cost 10.500000, {'classification_error_evaluator': 0.1640625}

Pass 0, Batch 24, Cost 41.500000, {'classification_error_evaluator': 0.6484375}

Pass 0, Batch 25, Cost 22.000000, {'classification_error_evaluator': 0.34375}
Thread [140078791661312] Forwarding __fc_layer_1__, 
*** Aborted at 1502194420 (unix time) try "date -d @1502194420" if you are using GNU date ***
PC: @                0x0 (unknown)
*** SIGFPE (@0x7f669a15806f) received by PID 18189 (TID 0x7f66a29e1700) from PID 18446744071999684719; stack trace: ***
    @     0x7f66a25b8160 (unknown)
    @     0x7f669a15806f mkl_blas_avx_sgemm_kernel_0

bushidonggua avatar Aug 08 '17 13:08 bushidonggua

怎么修改的,都改了啥?

lcy-seso avatar Aug 09 '17 07:08 lcy-seso

更改位置: default

image

就这些,那俩list内容类似如下: image

bushidonggua avatar Aug 09 '17 07:08 bushidonggua

用small_vgg没问题,用vgg16会报下面这个错: 好像和上面的错误类似 vgg161 vgg162

bushidonggua avatar Aug 09 '17 11:08 bushidonggua

这个错误是计算异常,但是往往都是数据读取有bug,或者数据预处理有问题引起的。建议沿着这个方向,仔细了解一下Paddle的数据读取过程。

lcy-seso avatar Aug 09 '17 11:08 lcy-seso

1 2

如图:这个位置断点还没到,读数据的话这个位置肯定要迭代获取路径的,有时候是这里还没开始读数据就挂,有时候是读一点挂,但是错误都是这个错: (unix time) try "date -d @1502194420" if you are using GNU date ***

bushidonggua avatar Aug 09 '17 12:08 bushidonggua

上面是v2api跑的,下面是我用v1api跑的,我跑small_vgg没问题,一跑vgg_16就也会出现这个问题, default

bushidonggua avatar Aug 09 '17 13:08 bushidonggua