FutureWarning: Input image dtype is bool

 

E:\Anaconda3\install\envs\wind_202104\lib\site-packages\skimage\transform\_warps.py:830: FutureWarning: Input image dtype is bool. Interpolation is not defined with bool data type. Please set order to 0 or explicitely cast input image to another data type. Starting from version 0.19 a ValueError will be raised instead of this warning.
  order = _validate_interpolation_order(image.dtype, order)

 

pip install -U scikit-image==0.16.2

 

 

参考:https://stackoverflow.com/questions/62330374/input-image-dtype-is-bool-interpolation-is-not-defined-with-bool-data-type

######################################3

posted @ 2021-04-19 14:53  西北逍遥  阅读(2058)  评论(0编辑  收藏  举报