配置深度学习作业tensorflow-gpu==1.14

安装tensorflow-gpu版本

*conda install tensorflow-gpu==1.14

会同时安装cudatoolkit和cudnn

跑模型出现错误:CUDA driver version is insufficient for CUDA runtime version

  • 第一种解决方案:(网上查询)

查询cuda驱动为10.0。而显卡驱动上cuda版本为8.0,计算力为376.54
卸载重装cuda,cudnn.
conda uninstall cuda
conda uninstall cudnn

conda install cuda
conda install cudnn
卸载cuda时候会同时将tensorflow卸载掉。
重新安装tensorflow
pip install tensorflow-gpu==1.14
但是出现错误:
ImportError: Could not find 'cudart64_100.dll’查询网上也没有解决。
*第二种解决方案:我想既然显卡驱动为8.0,虽然自己电脑显卡硬件没那么大计算力。但还是要尝试下,就重新安装了cuda和cudnn的驱动。具体方法
安装完成后的驱动程序版本:
配置深度学习作业tensorflow-gpu==1.14_第1张图片
安装成功后cuda驱动版本:安装成功后cuda驱动版本
但是:我居然跑通了模型!
目前我认为显卡硬件计算力跟cuda驱动没有太大联系,但是cuda驱动应该和运行时的驱动一致。如有错误,等我发现再改正。哈哈哈哈哈哈哈
配有跑成功动漫(我们的任务是人物动漫化)
配置深度学习作业tensorflow-gpu==1.14_第2张图片

解决PackagesNotFoundError: The following packages are not available from current channels问题。

  • conda install tensorflow-gpu==1.14

Collecting package metadata (current_repodata.json): done
Solving environment: failed with current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:

To search for alternate channels that may provide the conda package you’re looking for, navigate to https://anaconda.org and use the search bar at the top of the page.

解决环境:当前的repodata.json失败,将使用下一个repodata源重试。
收集包元数据(repodata.json):完成
求解环境:失败
包未找到错误 :以下包不能从当前频道使用:
要搜索可能提供您要查找的Conda软件包的备用频道,请导航到https://anaconda.org,并使用页面顶部的搜索栏。

解决办法:下载的地址错误,原先方法不好用,更改下载命令即可!
pip install tensorflow-gpu==1.14

安装cuda包

ImportError: Could not find ‘cudart64_100.dll’. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable.

你可能感兴趣的:(配置深度学习作业tensorflow-gpu==1.14)