Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing Mask R-CNN Settings... Segmentation fault (core dumped) #24

Closed
rginjapan opened this issue Apr 9, 2019 · 6 comments
Closed

Comments

@rginjapan
Copy link

The build process could be finished.
But under the Mask R-CNN detecting model, the Segment fault occurred.

:~/DynaSLAM-master$ ./Examples/RGB-D/rgbd_tum Vocabulary/ORBvoc.txt Examples/RGB-D/TUM3.yaml rgbd_dataset_freiburg3_walking_xyz/ associate.txt mask/ output/
nImages: 827
Loading Mask R-CNN. This could take a while...
Importing Mask R-CNN Settings...
Segmentation fault (core dumped)

After that I checked the Check.py file for Mask R-CNN, the result as bellowed:

~/DynaSLAM-master/src/python$ python Check.py
Traceback (most recent call last):
File "Check.py", line 10, in
import coco
File "/home/sunleyuan/DynaSLAM-master/src/python/coco.py", line 40, in
from pycocotools.coco import COCO
File "/usr/local/lib/python2.7/dist-packages/pycocotools/coco.py", line 55, in
from . import mask as maskUtils
File "/usr/local/lib/python2.7/dist-packages/pycocotools/mask.py", line 3, in
import pycocotools._mask as _mask
File "init.pxd", line 918, in init pycocotools._mask
ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C header, got 192 from PyObject

plz, give me some instructions.
Sorry for open an issue again.

@BertaBescos
Copy link
Owner

Run it from the DynaSLAM folder as python src/python/Check.py.

@rginjapan
Copy link
Author

Run it from the DynaSLAM folder as python src/python/Check.py.

I think it is the same with : ~/DynaSLAM-master/src/python$ python Check.py

The results are the same actually,

~/DynaSLAM-master$ python src/python/Check.py
Traceback (most recent call last):
File "src/python/Check.py", line 10, in
import coco
File "/home/sunleyuan/DynaSLAM-master/src/python/coco.py", line 40, in
from pycocotools.coco import COCO
File "/usr/local/lib/python2.7/dist-packages/pycocotools/coco.py", line 55, in
from . import mask as maskUtils
File "/usr/local/lib/python2.7/dist-packages/pycocotools/mask.py", line 3, in
import pycocotools._mask as _mask
File "init.pxd", line 918, in init pycocotools._mask
ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C header, got 192 from PyObject

@BertaBescos
Copy link
Owner

It looks like it is a numpy version problem.

@rginjapan
Copy link
Author

I have checked the closed issue about the version of numpy, you said that your version is 1.15.2, so I have used the same version with you. So maybe it is not the version problem.

numpy 1.15.2

@BertaBescos
Copy link
Owner

I am afraid I can not really help you out with this. It seems to be more of a Mask R-CNN installation issue.
Maybe this issue can help (cocodataset/cocoapi#248).

@rginjapan
Copy link
Author

I am afraid I can not really help you out with this. It seems to be more of a Mask R-CNN installation issue.
Maybe this issue can help (cocodataset/cocoapi#248).

Thanks, I have used this issue's solution:

I solve it like #14 (comment)

$ git clone https://github.com/pdollar/coco.git
$ cd coco/PythonAPI
$ make
$python setup.py install

and change the numpy version to 1.15.1

Now, the Check.py result is :

Initialated Mask RCNN network...
Mask R-CNN is correctly working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants