multimodallearning / pytorch-mask-rcnn

Other
2.01k stars 557 forks source link

ImportError #18

Open zhanvwei opened 6 years ago

zhanvwei commented 6 years ago

Traceback (most recent call last): File "/home/PycharmProjects/models/pytorch-mask-rcnn/demo.py", line 10, in import coco File "/home/PycharmProjects/models/pytorch-mask-rcnn/coco.py", line 50, in import model as modellib File "/home/PycharmProjects/models/pytorch-mask-rcnn/model.py", line 26, in from nms.nms_wrapper import nms File "/home/PycharmProjects/models/pytorch-mask-rcnn/nms/nms_wrapper.py", line 11, in from nms.pth_nms import pth_nms File "/home/PycharmProjects/models/pytorch-mask-rcnn/nms/pth_nms.py", line 2, in from ._ext import nms File "/home/PycharmProjects/models/pytorch-mask-rcnn/nms/_ext/nms/init.py", line 3, in from ._nms import lib as _lib, ffi as _ffi ImportError: /home/PycharmProjects/models/pytorch-mask-rcnn/nms/_ext/nms/_nms.so: undefined symbol: PyInt_FromLong

lasseha commented 6 years ago

Did you follow step 2 in the installation guide?

dlliyang commented 6 years ago

How to slove it?Thank u

ZHHJemotion commented 6 years ago

@lasseha I did follow the step 2 in the installation guide, but the same problem, do you have any suggestions to resolve it? Thank you! My pytorch version is 0.4, CUDA is 8.0