Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RabbearSu opened this issue Apr 18, 2019 · 9 comments
Open

Comments

@RabbearSu
Copy link

您好,我在使用您的模型预测时,报了错误:
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
Copy link
Owner

yizt commented Apr 18, 2019

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

@yizt
Copy link
Owner

yizt commented Apr 18, 2019

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

@RabbearSu
Copy link
Author

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

@yizt
Copy link
Owner

yizt commented Apr 18, 2019

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
Copy link
Author

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

@yizt
Copy link
Owner

yizt commented Apr 19, 2019

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

@RabbearSu
Copy link
Author

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

@lixiaohua30
Copy link

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

@yizt
Copy link
Owner

yizt commented Jun 17, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants