Open qianzhang2018 opened 4 years ago
I met the simple question...
Traceback (most recent call last):
File "demo.py", line 136, in
the same problem...
change your torch version
torch.version ='1.3.1', torchvision.version='0.4.2' still got the error
torch.version ='1.3.1', torchvision.version='0.4.2' still got the error
same version, have you solve this problem?
change your torch version
Hello, which version of PyTorch do you use? I met the same problem。 I' using Pytorch 1.0.1 and CUDA 10.0
Same here, I use torch 1.0.1. I tried CUDA 10.0 and 9.2, they don't work.
I also met error with using torch 1.0.0, CUDA 10.2 (also in torch 1.10.0)
I succeeded in installing DCN and importing it by the solution below. But I don't know if it works fine for other people.
conda create -n my-env python=3.7
conda install pytorch=1.3.1 torchvision cudatoolkit=10.0 pillow=6.1
sh make.sh
Traceback (most recent call last): File "train.py", line 236, in
main()
File "train.py", line 138, in main
model = create_model(opt) # model loss optimize
File "/mnt/ftp/code/zq/realsr/de_BasicSR-master/codes/models/init.py", line 9, in create_model
from .SR_model import SRModel as M
File "/mnt/ftp/code/zq/realsr/de_BasicSR-master/codes/models/SR_model.py", line 7, in
import models.networks as networks
File "/mnt/ftp/code/zq/realsr/de_BasicSR-master/codes/models/networks.py", line 3, in
import models.modules.SRResNet_arch as SRResNet_arch
File "/mnt/ftp/code/zq/realsr/de_BasicSR-master/codes/models/modules/SRResNet_arch.py", line 4, in
import models.modules.module_util as mutil
File "/mnt/ftp/code/zq/realsr/de_BasicSR-master/codes/models/modules/module_util.py", line 7, in
from deformable.modules.modulated_deform_conv import ModulatedDeformConv, _ModulatedDeformConv, ModulatedDeformConvPack
File "/mnt/ftp/code/zq/realsr/de_BasicSR-master/codes/models/modules/deformable/modules/init.py", line 1, in
from .deform_conv import DeformConv, _DeformConv, DeformConvPack
File "/mnt/ftp/code/zq/realsr/de_BasicSR-master/codes/models/modules/deformable/modules/deform_conv.py", line 12, in
from functions.deform_conv_func import DeformConvFunction
File "/home/zq/anaconda3/envs/realsr/lib/python3.6/site-packages/DCN-1.0-py3.6-linux-x86_64.egg/functions/init.py", line 1, in
from .deform_conv_func import DeformConvFunction
File "/home/zq/anaconda3/envs/realsr/lib/python3.6/site-packages/DCN-1.0-py3.6-linux-x86_64.egg/functions/deform_conv_func.py", line 13, in
import DCN
ImportError: /home/zq/anaconda3/envs/realsr/lib/python3.6/site-packages/DCN-1.0-py3.6-linux-x86_64.egg/DCN.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKSs