aim-uofa / AdelaiDet

AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
https://git.io/AdelaiDet
Other
3.39k stars 652 forks source link

ImportError blendmask/AdelaiDet/adet/_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail37_typeMetaDataInstance_preallocated_32E #135

Open onoderay opened 4 years ago

onoderay commented 4 years ago

Hello, I have follwoing error to test BlendMask model. Can anyone give me solution please?

python demo/demo.py \
>     --config-file configs/BlendMask/R_101_dcni3_5x.yaml \
>     --input datasets/coco/val2017/000000005992.jpg \
>     --confidence-threshold 0.35 \
>     --opts MODEL.WEIGHTS blendmask_r101_dcni3_5x.pth
Traceback (most recent call last):
  File "demo/demo.py", line 13, in <module>
    from predictor import VisualizationDemo
  File "/home/yuyonod/work/prj-cow/blendmask/AdelaiDet/demo/predictor.py", line 16, in <module>
    from adet.utils.visualizer import TextVisualizer
  File "/home/yuyonod/work/prj-cow/blendmask/AdelaiDet/adet/__init__.py", line 1, in <module>
    from adet import modeling
  File "/home/yuyonod/work/prj-cow/blendmask/AdelaiDet/adet/modeling/__init__.py", line 2, in <module>
    from .fcos import FCOS
  File "/home/yuyonod/work/prj-cow/blendmask/AdelaiDet/adet/modeling/fcos/__init__.py", line 1, in <module>
    from .fcos import FCOS
  File "/home/yuyonod/work/prj-cow/blendmask/AdelaiDet/adet/modeling/fcos/fcos.py", line 10, in <module>
    from adet.layers import DFConv2d, NaiveGroupNorm
  File "/home/yuyonod/work/prj-cow/blendmask/AdelaiDet/adet/layers/__init__.py", line 5, in <module>
    from .bezier_align import BezierAlign
  File "/home/yuyonod/work/prj-cow/blendmask/AdelaiDet/adet/layers/bezier_align.py", line 7, in <module>
    from adet import _C
ImportError: /home/yuyonod/work/prj-cow/blendmask/AdelaiDet/adet/_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail37_typeMetaDataInstance_preallocated_32E
stan-haochen commented 4 years ago

There seems to be an update in your env. You have to rebuild AdelaiDet by running python setup.py build develop.

ghost commented 4 years ago

I also fall into the same trouble... Have you solved the problem so far?

gritYCDA commented 4 years ago

I also suddenly gat that ImportError Message............................. rebuilding setup is not work are you solve this problem???

stan-haochen commented 4 years ago

clean (rm -r build) and rebuild