AttributeError 'NoneType' object has no attribute 'dtype'

在跑mask rcnn时遇到的问题,
img

运行的环境是:
python=3.6.13 tensorflow-gpu=1.14 numpy=1.18.5

试试在不同位置输出一下image类型,可能有的image没有取得有效值,所以类型为nonetype

image是空的吧,检查一个读取文件路径之类的,先imshow出来看看图片对不对

可能图片没有取到是个空值