EDVR icon indicating copy to clipboard operation
EDVR copied to clipboard

Problem with importing ModulatedDeformConvPack

Open NasrinR791 opened this issue 5 years ago • 6 comments

Hi Everyone, I am trying to train the EDVR in google colab with torch.version '1.3.0+cu100' I have compliled the DCN module first: (!python setup.py develop) and this is the result:

running develop running egg_info writing deform_conv.egg-info/PKG-INFO writing dependency_links to deform_conv.egg-info/dependency_links.txt writing top-level names to deform_conv.egg-info/top_level.txt reading manifest file 'deform_conv.egg-info/SOURCES.txt' writing manifest file 'deform_conv.egg-info/SOURCES.txt' running build_ext copying build/lib.linux-x86_64-3.6/deform_conv_cuda.cpython-36m-x86_64-linux-gnu.so -> Creating /usr/local/lib/python3.6/dist-packages/deform-conv.egg-link (link to .) Adding deform-conv 0.0.0 to easy-install.pth file Installed /content/gdrive/My Drive/Colab Notebooks/EDVR/EDVR-master/codes/models/archs/dcn Processing dependencies for deform-conv==0.0.0 Finished processing dependencies for deform-conv==0.0.0

However, when I try to import ModulatedDeformConvPack as DCN, I face ImportError in this line: from models.archs.dcn import deform_conv_cuda

ImportError: /content/gdrive/My Drive/Colab Notebooks/EDVR/EDVR-master/codes/models/archs/dcn/deform_conv_cuda.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c1011CPUTensorIdEv

Could anybody help me to solve this problem?

NasrinR791 avatar Oct 30 '19 15:10 NasrinR791

I have the same question

Jimzhou82sub avatar Nov 19 '19 00:11 Jimzhou82sub

How to solve it?

luissen avatar Nov 19 '19 08:11 luissen

i am so sad to meet the same question with you

sduzk avatar Nov 20 '19 09:11 sduzk

I meet the same problem. My suggestion is to look for answers in https://github.com/open-mmlab/mmdetection/issues/1577. Still trying,

DefaultaideN avatar Apr 18 '20 12:04 DefaultaideN

In my case, I removed all previous build files from /archs/dcn folder including builds, deform_conv.egg-info , pycache, and .so file, then I rebuilt them by running python setup.py develop, this solved the problem.

NasrinR791 avatar Apr 24 '20 18:04 NasrinR791

In my case, I removed all previous build files from /archs/dcn folder including builds, deform_conv.egg-info , pycache, and .so file, then I rebuilt them by running python setup.py develop, this solved the problem.

Absolutely right.

DefaultaideN avatar Apr 25 '20 00:04 DefaultaideN