PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
22.3k stars 5.62k forks source link

在场景文字识别中,突然就报以下的错误seqLength == outputHeight * outputWidth #10428

Closed yeyupiaoling closed 6 years ago

yeyupiaoling commented 6 years ago

在场景文字识别中:https://github.com/PaddlePaddle/models/blob/develop/scene_text_recognition 我之前训练还是正常的,今天测试一下,突然就报以下错误了,找不到北。是什么原因导致以下错误的。

F0505 12:32:42.279503 52183 BlockExpandOp.cpp:73] Check failed: seqLength == outputHeight * outputWidth (7 vs. 18446744073709551560) 
*** Check failure stack trace: ***
    @     0x7f3da70b1bcd  google::LogMessage::Fail()
    @     0x7f3da70b567c  google::LogMessage::SendToLog()
    @     0x7f3da70b16f3  google::LogMessage::Flush()
    @     0x7f3da70b6b8e  google::LogMessageFatal::~LogMessageFatal()
    @     0x7f3da6e2a016  paddle::BlockExpandFunction::getColShape()
    @     0x7f3da6e2c118  paddle::BlockExpandForward<>::calc()
    @     0x7f3da6da86ef  paddle::BlockExpandLayer::forward()
    @     0x7f3da6dbbf4d  paddle::NeuralNetwork::forward()
    @     0x7f3da6dbcc63  paddle::GradientMachine::forwardBackward()
    @     0x7f3da708da04  GradientMachine::forwardBackward()
    @     0x7f3da6c59689  _wrap_GradientMachine_forwardBackward
    @           0x4cb755  PyEval_EvalFrameEx
    @           0x4c2705  PyEval_EvalCodeEx
    @           0x4ca7df  PyEval_EvalFrameEx
    @           0x4c2705  PyEval_EvalCodeEx
    @           0x4ca088  PyEval_EvalFrameEx
    @           0x4c2705  PyEval_EvalCodeEx
    @           0x4ca088  PyEval_EvalFrameEx
    @           0x4c2705  PyEval_EvalCodeEx
    @           0x4ca7df  PyEval_EvalFrameEx
    @           0x4c2705  PyEval_EvalCodeEx
    @           0x4c24a9  PyEval_EvalCode
    @           0x4f19ef  (unknown)
    @           0x4ec372  PyRun_FileExFlags
    @           0x4eaaf1  PyRun_SimpleFileExFlags
    @           0x49e208  Py_Main
    @     0x7f3dce7ab830  __libc_start_main
    @           0x49da59  _start
    @              (nil)  (unknown)
Aborted (core dumped)
dzhwinter commented 6 years ago

检查一下图片的通道是否正确。参考https://github.com/PaddlePaddle/Paddle/issues/8103

yeyupiaoling commented 6 years ago

@dzhwinter 我看这个https://github.com/PaddlePaddle/models/blob/e785f6041379f8399fbb61096bbb0cfa523aa6b5/scene_text_recognition/network_conf.py#L36-L37 这个宽高有没有问题,是不是倒过来的。 shape(with, heigth)不是这样的吗?

yeyupiaoling commented 6 years ago

@dzhwinter 比如这个例子我是根据场景文字识别写的,之前运行挺好的:https://github.com/yeyupiaoling/LearnPaddle/tree/master/note6 现在运行突然就出现这个错误了,奇了怪了,同样是百度云 还有这个:https://github.com/yeyupiaoling/LearnPaddle/tree/master/note8 这个是我基本按照官方的例子的,只是调了网络中data的with和height,之前同样是可以运行的,现在就不行了,是不是PaddlePaddle改动了什么?

yeyupiaoling commented 6 years ago

@dzhwinter 我知道问题所在了,是PaddlePaddle的版本问题,我之前是使用0.10的,然后换成0.11就报错了。 问题是找到了,那如何解决问题呢?

yeyupiaoling commented 6 years ago

@chengduoZH 这算不算是PaddlePaddle的bug呢?