Maskrcnn-benchmark: torchvision ImportError

Created on 24 May 2019  路  6Comments  路  Source: facebookresearch/maskrcnn-benchmark

ImportError: /home/jiang/anaconda3/envs/maskrcnn_benchmark/lib/python3.6/site-packages/torchvision/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19NonVariableTypeMode10is_enabledEv

Most helpful comment

Ok, I think you have to downgrade your torch vision version. Do
conda uninstall pytorch
conda uninstall pytorch-nightly
conda uninstall torchvision

then redo this:
conda install -c pytorch pytorch-nightly torchvision=0.2.2 cudatoolkit=10.0

All 6 comments

@jiangkeng123 before you build, try to export CUDA_HOME=/cuda_dir, and build again.

The same thing happens for me. Whenever I open python and attempt to import torch vision, this error pops up.

Ok, I think you have to downgrade your torch vision version. Do
conda uninstall pytorch
conda uninstall pytorch-nightly
conda uninstall torchvision

then redo this:
conda install -c pytorch pytorch-nightly torchvision=0.2.2 cudatoolkit=10.0

What happens is that you compiled with one version of PyTorch, and when you updated torchvision it reinstalled a new version of PyTorch.

Another solution is just to recompile maskrcnn_benchmark after deleting the build folder.

Hello, I have the same error, and finally how do you solve this problem?

@jiangkeng123 before you build, try to export CUDA_HOME=/cuda_dir, and build again.

can you give more detail about the cuda_dir?such as ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adityaarun1 picture adityaarun1  路  3Comments

CF2220160244 picture CF2220160244  路  3Comments

IenLong picture IenLong  路  4Comments

BelhalK picture BelhalK  路  4Comments

YuShen1116 picture YuShen1116  路  4Comments