jbwang1997 / OBBDetection

OBBDetection is an oriented object detection library, which is based on MMdetection.
Apache License 2.0
525 stars 112 forks source link

环境安装报错 #7

Closed xumengen closed 2 years ago

xumengen commented 2 years ago

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

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

jbwang1997 commented 2 years ago

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

xumengen commented 2 years ago

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

image image

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

jbwang1997 commented 2 years ago

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

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

lyccol commented 2 years ago

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

xumengen commented 2 years ago

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

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

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

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

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

xumengen commented 2 years ago

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

那你的cudatoolkit是啥版本的哦

lyccol commented 2 years ago

我的是 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 commented 2 years ago

我的是 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 commented 2 years ago

我的是 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。 https://github.com/csuhan/ReDet/issues/1

jbwang1997 commented 2 years ago

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

jbwang1997 commented 2 years ago

我的是 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 commented 2 years ago

我的是 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 commented 2 years ago

我的是 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 commented 2 years ago

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

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

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