maskrcnn训练提示:FutureWarning: Input image dtype is bool

在自己训练maskrcnn时出现的提示,并且出现次数多了之后内核会死亡:
在这里插入图片描述
最后发现原因是 scikit-image=0.17.2 的版本存在的问题

解决方法

那就修改scikit-image包版本为0.16.2

pip install -U scikit-image==0.16.2
(tf-gpu-py36) root@…:……路径# pip install -U scikit-image==0.16.2
Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/
Collecting scikit-image==0.16.2
  Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/c8/bb/771800366f41d66eef51e4b80515f8ef7edab234a3f244fdce3bafe89b39/scikit_image-0.16.2-cp36-cp36m-manylinux1_x86_64.whl (26.5 MB)
     |████████████████████████████████| 26.5 MB 77.9 MB/s 
Requirement already satisfied: pillow>=4.3.0 in /root/root_vdb1/anaconda3/envs/tf-gpu-py36/lib/python3.6/site-packages (from scikit-image==0.16.2) (8.3.1)
Requirement already satisfied: matplotlib!=3.0.0,>=2.0.0 in /root/root_vdb1/anaconda3/envs/tf-gpu-py36/lib/python3.6/site-packages (from scikit-image==0.16.2) (3.3.4)
Requirement already satisfied: networkx>=2.0 in /root/root_vdb1/anaconda3/envs/tf-gpu-py36/lib/python3.6/site-packages (from scikit-image==0.16.2) (2.5.1)
Requirement already satisfied: PyWavelets>=0.4.0 in /root/root_vdb1/anaconda3/envs/tf-gpu-py36/lib/python3.6/site-packages (from scikit-image==0.16.2) (1.1.1)
Requirement already satisfied: imageio>=2.3.0 in /root/root_vdb1/anaconda3/envs/tf-gpu-py36/lib/python3.6/site-packages (from scikit-image==0.16.2) (2.9.0)
Requirement already satisfied: scipy>=0.19.0 in /root/root_vdb1/anaconda3/envs/tf-gpu-py36/lib/python3.6/site-packages (from scikit-image==0.16.2) (1.5.4)
Requirement already satisfied: numpy in /root/root_vdb1/anaconda3/envs/tf-gpu-py36/lib/python3.6/site-packages (from imageio>=2.3.0->scikit-image==0.16.2) (1.19.5)
Requirement already satisfied: kiwisolver>=1.0.1 in /root/root_vdb1/anaconda3/envs/tf-gpu-py36/lib/python3.6/site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image==0.16.2) (1.3.1)
Requirement already satisfied: cycler>=0.10 in /root/root_vdb1/anaconda3/envs/tf-gpu-py36/lib/python3.6/site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image==0.16.2) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in /root/root_vdb1/anaconda3/envs/tf-gpu-py36/lib/python3.6/site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image==0.16.2) (2.4.7)
Requirement already satisfied: python-dateutil>=2.1 in /root/root_vdb1/anaconda3/envs/tf-gpu-py36/lib/python3.6/site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image==0.16.2) (2.8.1)
Requirement already satisfied: six in /root/root_vdb1/anaconda3/envs/tf-gpu-py36/lib/python3.6/site-packages (from cycler>=0.10->matplotlib!=3.0.0,>=2.0.0->scikit-image==0.16.2) (1.16.0)
Requirement already satisfied: decorator<5,>=4.3 in /root/root_vdb1/anaconda3/envs/tf-gpu-py36/lib/python3.6/site-packages (from networkx>=2.0->scikit-image==0.16.2) (4.4.2)
Installing collected packages: scikit-image
  Attempting uninstall: scikit-image
    Found existing installation: scikit-image 0.17.2
    Uninstalling scikit-image-0.17.2:
      Successfully uninstalled scikit-image-0.17.2
Successfully installed scikit-image-0.16.2

你可能感兴趣的:(maskrcnn,机器学习)