Mask RCNN解决问题记录
2020-12-06 本文已影响0人
惊天动地猪儿虫
在学习处理Mask RCNN时需要的一些问题,特此记录下来。
1 numpy版本与tensorflow版本不对应,提示warning
d:\anaconda3\envs\learnvideos\lib\site-packages\tensorflow\python\framework\dtypes.py:469: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
d:\anaconda3\envs\learnvideos\lib\site-packages\tensorflow\python\framework\dtypes.py:470: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
d:\anaconda3\envs\learnvideos\lib\site-packages\tensorflow\python\framework\dtypes.py:471: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
d:\anaconda3\envs\learnvideos\lib\site-packages\tensorflow\python\framework\dtypes.py:472: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
d:\anaconda3\envs\learnvideos\lib\site-packages\tensorflow\python\framework\dtypes.py:473: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
d:\anaconda3\envs\learnvideos\lib\site-packages\tensorflow\python\framework\dtypes.py:476: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
Using TensorFlow backend.
降低numpy版本,目前tensorflw使用的是1.4.0版本,故而numpy版本使用1.17以下:pip install numpy==1.16.0
,版本过低的话又会提示如下信息,经测试1.16.0
合适。
ValueError: numpy.ufunc size changed,
may indicate binary incompatibility. Expected 216 from C header, got 192 from PyObject
2 运行inspect_model.ipynb
中Configurations
时提示错误
1 __author__ = 'tsungyi'
----> 3 import pycocotools._mask as _mask
5 # Interface for manipulating masks stored in RLE format.
ImportError: No module named 'pycocotools._mask'
解决方法:
linux中直接使用 pip install pycocotools
安装
windows下 先安装windows 中需要先安装 Visual C++ 2015在使用pip install pycocotools
安装。最后将安装后的pycocotools
拷贝到samples\coco
目录下