Scikit-learn: ValueError: can not convert object to float64

╄→гoц情女王★ 提交于 2019-12-22 08:38:51

问题


I have experienced very strange problem related to scikit-image. Namely, I'm not able to run "started example":

from skimage import data, io, filter

image = data.coins() # or any NumPy array!
edges = filter.sobel(image)
io.imshow(edges)

After that Python 2.7 reports Error:

ValueError: can not convert object to float64.

Moreover, I am not able to open any "tif, png" images, because Python reports similar error. Interestingly, this problem appeared suddenly, because at the beginning everything was working correct.I suppose this was due to instalation of pymorph module which probably affected numpy. However, do You have any ideas how to solve this problem?

来源:https://stackoverflow.com/questions/23343517/scikit-learn-valueerror-can-not-convert-object-to-float64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!