Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deform_conv报错,是不是什么版本有问题? #36

Closed
pengzhaofan opened this issue Dec 6, 2019 · 9 comments
Closed

deform_conv报错,是不是什么版本有问题? #36

pengzhaofan opened this issue Dec 6, 2019 · 9 comments

Comments

@pengzhaofan
Copy link

91c7d8a311a0712695b6cc566f6353df

我用的redhat7.4,python3.6.2, gcc 4.9.2, Cython 0.28, torch 1.3,cuda 10.1,
deformable convolution编译的时候没问题,已经生成文件了。
但是在运行eval.py进行测试时,报了图中的错误。我怀疑是哪个库版本不一致导致的,麻烦您有空看一下,谢谢

@pengzhaofan
Copy link
Author

91c7d8a311a0712695b6cc566f6353df

@Sylvia6
Copy link

Sylvia6 commented Dec 7, 2019

same problem...

@MhLiao
Copy link
Owner

MhLiao commented Dec 7, 2019

有可能是编译使用的cuda的版本和pytorch的cuda版本不一致

@MhLiao
Copy link
Owner

MhLiao commented Dec 9, 2019

Make sure your CUDA path of $CUDA_HOME is the same version as your CUDA in PyTorch by the command of echo $CUDA_HOME. If not, you need to change the $CUDA_HOME by export CUDA_HOME=path-of-another-version or re-install PyTorch with the same CUDA version as in CUDA_HOME.

@Sqrt5
Copy link

Sqrt5 commented Dec 10, 2019

一样的问题,使用的conda安装的pytorch,cudatoolkit是10.0.130版本
image
cuda装的也是10.0.130
image
python:3.6.5
pytorch:1.2.0
torchvision:0.4.0
cudatoolkit:10.0.130-0
cuda:10.0.130
cudnn:7.6.4
难道说10.0.130-0和10.0.130还不一样吗
进入到那个目录直接import,返回如下错误
image

@pengzhaofan
Copy link
Author

多谢多谢,问题找到了,是第一次gcc版本不对,编译失败,没删掉build文件夹,虽然第二次升级完gcc编译成功了,但是运行的时候报错了。
删掉了build文件夹,重新编译下,问题解决了。

@Sqrt5
Copy link

Sqrt5 commented Dec 11, 2019

多谢多谢,问题找到了,是第一次gcc版本不对,编译失败,没删掉build文件夹,虽然第二次升级完gcc编译成功了,但是运行的时候报错了。
删掉了build文件夹,重新编译下,问题解决了。

升级到4.9.2解决的吗?

@Sqrt5
Copy link

Sqrt5 commented Dec 11, 2019

问题稀里糊涂解决的,操作如下
升级gcc到4.9.2
卸载cuda10.0再重装cuda10.0
用conda卸载安装的torch/torchvision/cudatoolkit
用pip安装torch==1.2.0/torchvision==0.4.0
然后目前是不报编译的错了

@pengzhaofan
Copy link
Author

多谢多谢,问题找到了,是第一次gcc版本不对,编译失败,没删掉build文件夹,虽然第二次升级完gcc编译成功了,但是运行的时候报错了。
删掉了build文件夹,重新编译下,问题解决了。

升级到4.9.2解决的吗?

解决了,我用的torch1.3, gcc4.9.2,cuda10.1

@MhLiao MhLiao closed this as completed Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants