endernewton / tf-faster-rcnn

Tensorflow Faster RCNN for Object Detection
https://arxiv.org/pdf/1702.02138.pdf
MIT License
3.65k stars 1.57k forks source link

ImportError: dynamic module does not define module export function (PyInit__mask) #324

Open zyyhl opened 6 years ago

zyyhl commented 6 years ago

Traceback (most recent call last): File "./tools/test_net.py", line 13, in from datasets.factory import get_imdb File "/home/user/zyy/tf-faster-rcnn-master/tools/../lib/datasets/factory.py", line 15, in from datasets.coco import coco File "/home/user/zyy/tf-faster-rcnn-master/tools/../lib/datasets/coco.py", line 23, in from pycocotools.coco import COCO File "/home/user/zyy/tf-faster-rcnn-master/tools/../data/coco/PythonAPI/pycocotools/coco.py", line 55, in from . import mask as maskUtils File "/home/user/zyy/tf-faster-rcnn-master/tools/../data/coco/PythonAPI/pycocotools/mask.py", line 3, in import pycocotools._mask as _mask ImportError: dynamic module does not define module export function (PyInit__mask)

daa233 commented 6 years ago

This error may be reproduced by building the Cython and COCO API with Python 2 and then train the model with Python 3.

ninesky110 commented 6 years ago

python setup.py and you can have two .so files ,then put the file in nms file and untils