mapillary / seamseg

Seamless Scene Segmentation
BSD 3-Clause "New" or "Revised" License
289 stars 53 forks source link

.cpython-37m-x86_64-linux-gnu.so: undefined symbol: #11

Open qujiangang opened 4 years ago

qujiangang commented 4 years ago

/home/qujiangang/conda/lib/python3.7/site-packages/seamseg/utils/bbx/_backend.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail37_typeMetaDataInstance_preallocated_32E

ducksoup commented 4 years ago

Please provide more details about your environment and what you are trying to do. Unfortunately that error message alone is not nearly enough to understand what is going on.

HaoLIU94 commented 4 years ago

Hello, I met the same error while I was trying to run the inference with the provided pre-trained model (res50).

Traceback (most recent call last): File "test_panoptic.py", line 16, in import seamseg.models as models File "/home/haoliu/.conda/envs/py36/lib/python3.6/site-packages/seamseg/models/init.py", line 1, in from .resnet import File "/home/haoliu/.conda/envs/py36/lib/python3.6/site-packages/seamseg/models/resnet.py", line 6, in from inplace_abn import ABN File "/home/haoliu/.conda/envs/py36/lib/python3.6/site-packages/inplace_abn/init.py", line 2, in from .abn import ABN, InPlaceABN, InPlaceABNSync File "/home/haoliu/.conda/envs/py36/lib/python3.6/site-packages/inplace_abn/abn.py", line 6, in from .functions import File "/home/haoliu/.conda/envs/py36/lib/python3.6/site-packages/inplace_abn/functions.py", line 5, in from . import _backend ImportError: /home/haoliu/.conda/envs/py36/lib/python3.6/site-packages/inplace_abn/_backend.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail37_typeMetaDataInstance_preallocated_32E

It seems like when we import _backend which is a cpython compiled file. There is some function definition missing.

This is what I did : git clone and python setup.py install

python -m torch.distributed.launch --nproc_per_node=1 test_panoptic.py --meta ../model/metadata.bin --log_dir ../log/ ../model/config.ini ../model/seamseg_r50_vistas.tar /imgs/ ../output/

The requirements are met.

I have: python 3.6 PyTorch 1.1.0 CUDA 10.1 Ubuntu 18.04 with GCC 7.5

Thanks, if you could help

pranshurastogi29 commented 4 years ago

hey @HaoLIU94 i am also having same issue have you solved it thanks

HaoLIU94 commented 4 years ago

hey @HaoLIU94 i am also having same issue have you solved it thanks

I wasn't able to use this project anyways.