Skip to content

import _c error #29

@HansolHyewon

Description

@HansolHyewon

I followed the install.me process.
But there is an error like the following.

File "tools/train_net.py", line 18, in
from maskrcnn_benchmark.engine.inference import inference
File "/workspace/FreeAnchor/maskrcnn_benchmark/engine/inference.py", line 20, in
from maskrcnn_benchmark.structures.boxlist_ops import boxlist_iou
File "/workspace/FreeAnchor/maskrcnn_benchmark/structures/boxlist_ops.py", line 6, in
from maskrcnn_benchmark.layers import nms as _box_nms
File "/workspace/FreeAnchor/maskrcnn_benchmark/layers/init.py", line 8, in
from .nms import nms
File "/workspace/FreeAnchor/maskrcnn_benchmark/layers/nms.py", line 3, in
from maskrcnn_benchmark import _C
ImportError: /workspace/FreeAnchor/maskrcnn_benchmark/_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19UndefinedTensorImpl10_singletonE

Package Version Location


backcall 0.1.0
certifi 2019.11.28
cffi 1.13.2
cycler 0.10.0
Cython 0.29.14
decorator 4.4.1
ipython 7.12.0
ipython-genutils 0.2.0
jedi 0.16.0
kiwisolver 1.1.0
maskrcnn-benchmark 0.1 /workspace/FreeAnchor
matplotlib 3.1.3
mkl-fft 1.0.15
mkl-random 1.1.0
mkl-service 2.3.0
numpy 1.18.1
olefile 0.46
parso 0.6.0
pexpect 4.8.0
pickleshare 0.7.5
Pillow 4.1.1
pip 20.0.2
prompt-toolkit 3.0.3
ptyprocess 0.6.0
pycocotools 2.0.0
pycparser 2.19
Pygments 2.5.2
pyparsing 2.4.6
python-dateutil 2.8.1
PyYAML 5.3
setuptools 45.1.0.post20200127
six 1.14.0
torch 1.1.0
torchvision 0.2.1
tqdm 4.42.1
traitlets 4.3.3
wcwidth 0.1.8
wheel 0.34.2
yacs 0.1.6

How do I solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions