输入图像数据类型为 bool。插值不是用 bool 数据类型定义的

par*_*h71 7 python scikit-image deep-learning conv-neural-network tensorflow

我在使用Mask_RCNN训练我的自定义数据集时遇到了这个问题。

当我开始训练时会发生此错误。这就是我得到的:

/home/parth/anaconda3/envs/compVision/lib/python3.7/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)

我一直得到这个大约一百次,然后内核死了。请帮忙!!

小智 9

也许您可以尝试使用 0.16.2 版的 skimage?当我使用 0.17.2 版时?我遇到了同样的问题。祝你好运!不知道为什么。


小智 9

pip install -U scikit-image==0.16.2


小智 6

我在用两个类训练 MaskRCNN 模型时也遇到了同样的问题。然后通过以下命令卸载现有的(我的是0.19.2)scikit-image:

pip 卸载 scikit-image

并通过以下命令安装了同一软件包的 0.16.2 版本:

pip 安装 scikit-image==0.16.2

注:使用的tensorflow和keras版本是:

张量流==2.2.0 keras==2.3.1