Tramac / awesome-semantic-segmentation-pytorch

Semantic Segmentation on PyTorch (include FCN, PSPNet, Deeplabv3, Deeplabv3+, DANet, DenseASPP, BiSeNet, EncNet, DUNet, ICNet, ENet, OCNet, CCNet, PSANet, CGNet, ESPNet, LEDNet, DFANet)
Apache License 2.0
2.85k stars 582 forks source link

core/nn/_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN3c1011CPUTensorIdEv #108

Open Hussainflr opened 4 years ago

Hussainflr commented 4 years ago

Hi there, I'm getting this error "undefined symbol: _ZN3c1011CPUTensorIdEv". Although I have followed setup instructions correctly, and it installs everything without any error or warning. But when I'm trying to run the fcn32 training script it gives this error. Any help or suggestion would be highly appreciated.

Below is my env: python 3.7 pytorch 1.3 cuda 10

Error traceback:.

Traceback (most recent call last): File "train.py", line 18, in from core.data.dataloader import get_segmentation_dataset File "segmentation/awesome-semantic-segmentation-pytorch/core/init.py", line 1, in from . import nn, models, utils, data File "segmentation/awesome-semantic-segmentation-pytorch/core/nn/init.py", line 4, in from .ca_block import * File "segmentation/awesome-semantic-segmentation-pytorch/core/nn/ca_block.py", line 6, in from core.nn import _C ImportError: segmentation/awesome-semantic-segmentation-pytorch/core/nn/_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN3c1011CPUTensorIdEv

qingzi02010 commented 4 years ago

@Hussainflr I encountered the same problem, and the env is also same with yours. Did you solve it? Thank you!

guo49 commented 4 years ago

@Hussainflr I encountered the same problem, and the env is also same with yours. Did you solve it? Thank you!

I also encountered this problem, and then I solved it by deleting the build folder. Hope it can help you.