在跑slowfast的时候遇到这个问题torch.cuda.is_aviaiable() 返回值为False的问题
这个问题出现在183 和185的服务器上
首先在185上试图解决这个问题
torch.cuda.is_aviaiable() 意思就是说cuda 没用上
因为torch 是用的pip install torch 安装的
怀疑不能链接cuda
然后卸载了torch 和torchvision
尝试使用conda install pytorch==1.6.0 torchvision==0.7.0 cudatoolkit=10.0 -c pytorch
报错 。。。
尝试解决。。。
但是最后没有搞定
看到有人说是重装的anaconda干净 然后我重装了anaconda
重装完之后:
conda install pytorch==1.6.0 torchvision==0.7.0 cudatoolkit=10.0 -c pytorch
这个还是报错
但是conda install pytorch==1.5.0 torchvision==0.6.0 cudatoolkit=10.0 -c pytorch
可以成功安装
slowfast 依赖的detection中要求pytorch 1.5 以上的版本
然后按照要求装slowfast 的依赖库
运行slowfast 的时候报错信息为:
https://github.com/aim-uofa/AdelaiDet/issues/181
早前有遇到这个问题靠升级pytorch 版本解决过这个问题
然后决定重新装deteciton ;
其中安装detection 的时候报错:
https://github.com/aim-uofa/AdelaiDet/issues/181
安装流程参考:
git clone https://github.com/facebookresearch/detectron2.git
cd detectron2
git checkout -f 9eb4831
cd ..
python -m pip install -e detectron2
git clone https://github.com/aim-uofa/AdelaiDet.git
cd AdelaiDet
python setup.py build develop
运行 python -m pip install -e detection2
出现错误:
这样一堆错误
还在想怎么解决这个问题
仔细的比对了 183 185 57 服务器
可以看到:57 的驱动
183 和185 的驱动: