yizt / keras-ctpn

keras复现场景文本检测网络CPTN: 《Detecting Text in Natural Image with Connectionist Text Proposal Network》;欢迎试用,关注,并反馈问题...
Apache License 2.0
107 stars 38 forks source link

预测时报错numpy.linalg.linalg.LinAlgError: SVD did not converge #8

Open RabbearSu opened 5 years ago

RabbearSu commented 5 years ago

您好,我在使用您的模型预测时,报了错误: File predict.py line 64 in module main(argments) File "...image_utils.py" in load_image_gt image, window, scale,padding = resize_image(image, output_size) File "...image_utils.py" in resize_image order=1, mode='constant',cval=0,clip=True,preserve_range=True FIle ".../skimage/transform/_warps.py", line 165 in resize tform.estimate(src_corners,dst_corners) File ".../skimage/transform/_geometric.py", line679 in estimate _,_,V=np.linalg.svd(A) ... numpy.linalg.linalg.LinAlgError: SVD did not converge 请问是什么原因呢?谢谢!

yizt commented 5 years ago

@RabbearSu 无法确定问题,可否把预测出错的图片发我邮箱csuyzt@163.com;我测试下看看问题在哪里

yizt commented 5 years ago

@RabbearSu 您好,测试了您发的图像,并没有报错哦。是不是用的最新代码?或者是包版本问题? python predict.py --weight_path /tmp/ctpn.2015.142.h5 --image_path /tmp/img_0602.jpg 结果如下: image

RabbearSu commented 5 years ago

@yizt 谢谢您的测试!我是用的最新的代码,能否发一份各个包版本的requirements呢?谢谢!

yizt commented 5 years ago

python版本是3.6;相关包版本如下: scikit-image 0.13.0
scikit-learn 0.20.3
scipy 1.1.0
Keras 2.2.4
numpy 1.15.0
tensorboard 1.9.0
tensorflow-gpu 1.9.0

RabbearSu commented 5 years ago

@yizt 谢谢您的分享!这次没有问题了^_^ 不过貌似对文本文件的识别不是很好,特别是行间距比较密的,很多漏掉的

yizt commented 5 years ago

@RabbearSu 请问您用的是自己训练的模型还是与训练模型?如果是预训练模型效果不好,很正常,因为它仅仅在ICD2015数据集上训练过。自然场景文本和密集文本的数据分布差异比较大。

RabbearSu commented 5 years ago

@yizt 我是在您的预训练模型上跑的,效果不是很稳定,时好时坏。我再找找有没有文本的数据集吧,对您的帮助表示感谢!

lixiaohua30 commented 3 years ago

有在python2.7版本下跑过么?训练的时候遇到这个问题:numpy.linalg.LinAlgError: SVD did not converge

yizt commented 3 years ago

没有哦,只在python3.6版本上测试过

在 2021年6月16日,下午5:54,LiHaiyan @.***> 写道:

有在python2.7版本下跑过么?训练的时候遇到这个问题:numpy.linalg.LinAlgError: SVD did not converge

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yizt/keras-ctpn/issues/8#issuecomment-862220956, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV2ST3US7KCZJBBRALA4MDTTBYFBANCNFSM4HGZJISQ.