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

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

Open
onoderay opened this issue Jul 6, 2020 · 4 comments

Comments

@onoderay
Copy link

onoderay commented Jul 6, 2020

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
Copy link
Collaborator

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

@ghost
Copy link

ghost commented Jul 10, 2020

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

@gritYCDA
Copy link

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

@stan-haochen
Copy link
Collaborator

clean (rm -r build) and rebuild

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

3 participants