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

环境安装报错 #7

Closed
xumengen opened this issue Aug 23, 2021 · 14 comments
Closed

环境安装报错 #7

xumengen opened this issue Aug 23, 2021 · 14 comments

Comments

@xumengen
Copy link

step d中的pip install -v -e . 报错
image
image
image

torch 版本1.7.0 cudatoolkit版本11.0 NVIDIA GeForce RTX 3090

@jbwang1997
Copy link
Owner

这个应该还是环境的问题,能否看一下你环境配置

@xumengen
Copy link
Author

xumengen commented Aug 23, 2021

这个应该还是环境的问题,能否看一下你环境配置

image
image

这是conda环境,我感觉是我torch版本的问题,但我也试了torch 1.5,也会报错
截屏2021-08-23 下午5 16 20
是因为cudatoolkit的版本问题吗

@jbwang1997
Copy link
Owner

你的CUDA是直接安装在默认路径下的吗,还是设置了CUDA_HOME。

可以通过nvcc --version查看一下电脑上安装的CUDA版本,是否和cudatoolkit的版本一样。

@lyccol
Copy link

lyccol commented Aug 23, 2021

你可能需要pytorch 1.3.1,我装高版本也会报这个错

@xumengen
Copy link
Author

你的CUDA是直接安装在默认路径下的吗,还是设置了CUDA_HOME。

可以通过nvcc --version查看一下电脑上安装的CUDA版本,是否和cudatoolkit的版本一样。

你的CUDA是直接安装在默认路径下的吗,还是设置了CUDA_HOME。

可以通过nvcc --version查看一下电脑上安装的CUDA版本,是否和cudatoolkit的版本一样。

设置了CUDA的路径的,和cudatoolkit版本是一致的

@xumengen
Copy link
Author

你可能需要pytorch 1.3.1,我装高版本也会报这个错

那你的cudatoolkit是啥版本的哦

@lyccol
Copy link

lyccol commented Aug 23, 2021

我的是
NVIDIA-SMI 410.48 Driver Version: 410.48
4*2080ti

nvcc -V

Command 'nvcc' not found, but can be installed with:
apt install nvidia-cuda-toolkit

cat /usr/local/cuda/version.txt

CUDA Version 10.2.89

@xumengen
Copy link
Author

我的是
NVIDIA-SMI 410.48 Driver Version: 410.48
4*2080ti

nvcc -V

Command 'nvcc' not found, but can be installed with:
apt install nvidia-cuda-toolkit

cat /usr/local/cuda/version.txt

CUDA Version 10.2.89

ok,我用的3090的卡,3090貌似只能用cuda11

@lyccol
Copy link

lyccol commented Aug 23, 2021

我的是
NVIDIA-SMI 410.48 Driver Version: 410.48
4*2080ti

nvcc -V

Command 'nvcc' not found, but can be installed with:
apt install nvidia-cuda-toolkit

cat /usr/local/cuda/version.txt

CUDA Version 10.2.89

ok,我用的3090的卡,3090貌似只能用cuda11

建议你可以尝试一下这个方法,可以使用cuda11.0。
csuhan/ReDet#1

@jbwang1997
Copy link
Owner

我在3090上使用CUDA 10.2.89编译成功过,pytorch1.9.0。你可以试一下换成pytorch1.9.0。

@jbwang1997
Copy link
Owner

我的是
NVIDIA-SMI 410.48 Driver Version: 410.48
4*2080ti

nvcc -V

Command 'nvcc' not found, but can be installed with:
apt install nvidia-cuda-toolkit

cat /usr/local/cuda/version.txt

CUDA Version 10.2.89

ok,我用的3090的卡,3090貌似只能用cuda11

建议你可以尝试一下这个方法,可以使用cuda11.0。
csuhan/ReDet#1

应该不是这个问题,OBBDetection用的是mmdetection2.2,在v2版本的mmdetection已经将这个改过了。

@xumengen
Copy link
Author

我的是
NVIDIA-SMI 410.48 Driver Version: 410.48
4*2080ti

nvcc -V

Command 'nvcc' not found, but can be installed with:
apt install nvidia-cuda-toolkit

cat /usr/local/cuda/version.txt

CUDA Version 10.2.89

ok,我用的3090的卡,3090貌似只能用cuda11

建议你可以尝试一下这个方法,可以使用cuda11.0。
csuhan/ReDet#1

应该不是这个问题,OBBDetection用的是mmdetection2.2,在v2版本的mmdetection已经将这个改过了。

我在3090上重新试了torch1.7.1和cuda11.0,可以训练了

@houw0517
Copy link

houw0517 commented Jan 9, 2022

我的是
NVIDIA-SMI 410.48 Driver Version: 410.48
4*2080ti

nvcc -V

Command 'nvcc' not found, but can be installed with:
apt install nvidia-cuda-toolkit

cat /usr/local/cuda/version.txt

CUDA Version 10.2.89

ok,我用的3090的卡,3090貌似只能用cuda11

建议你可以尝试一下这个方法,可以使用cuda11.0。
csuhan/ReDet#1

应该不是这个问题,OBBDetection用的是mmdetection2.2,在v2版本的mmdetection已经将这个改过了。

我在3090上重新试了torch1.7.1和cuda11.0,可以训练了

您好 可以私信交流一下吗 我的环境也是3090 现在还有问题

@houw0517
Copy link

你的CUDA是直接安装在默认路径下的吗,还是设置了CUDA_HOME。

可以通过nvcc --version查看一下电脑上安装的CUDA版本,是否和cudatoolkit的版本一样。

请问 cuda版本和cudatoolkit版本不一样 怎么办?

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