Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image 关于数据类型的略读警告_Image_Ipython_Scikit Image - Fatal编程技术网

Image 关于数据类型的略读警告

Image 关于数据类型的略读警告,image,ipython,scikit-image,Image,Ipython,Scikit Image,为什么这个代码段会给我这个警告,以及如何修复它 %matplotlib inline from skimage import io io.imshow(io.imread('https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png')) 警告: /home/anaconda3/lib/python3.6/site-packages/skimage/io/_plugins/matplot

为什么这个代码段会给我这个警告,以及如何修复它

%matplotlib inline
from skimage import io

io.imshow(io.imread('https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png'))
警告:

/home/anaconda3/lib/python3.6/site-packages/skimage/io/_plugins/matplotlib_plugin.py:51: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  out_of_range_float = (np.issubdtype(image.dtype, np.float) and
/home/anaconda3/lib/python3.6/site-packages/matplotlib/axes/_base.py:1400: MatplotlibDeprecationWarning: The 'box-forced' keyword argument is deprecated since 2.2.
  " since 2.2.", cbook.mplDeprecation)

我有略读版0.13.1。谢谢

这些警告是由于scikit image 0.13.1之后发布的NumPy和Matplotlib版本中的不推荐使用而引起的。如评论中所述,升级到0.14可以解决问题。

您的IPython版本是什么?无法在IPython 6.4.0中复制。@AndriyMakukha怪异。我也有IPython 6.4.0。实际上,在我将skimage升级到0.14.0后,警告消失了。