1.ImportError: DLL load failed: 找不到指定的模块
解决方法:把TensorFlow卸载了重新安装(可能是因为版本不对应的问题,在anaconda里面删除TensorFlow库,再重新安装回去)
2.keras报错:load_weights() got an unexpected keyword arguement 'skip_mmismatch'
最后将keras进行升级(我的升级到了2.1.5版本),这个问题就解决了。
总结:
在跑keras和tensorflow程序的时候遇到了好多次这种版本导致的问题。因为深度学习现在发展比较迅速,所以很多框架的API更新比较快,以后debug的时候一定要注意排查版本问题。
3.pip报错ModuleNotFoundError: No module named 'pip._internal'
# wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
# sudo python get-pip.py
4.下载速度慢,遇到time read out问题
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xx
5.导入tensorflow:ImportError: libcublas.so.9.0: cannot open shared object file: No such file or director
出现这个问题是因为TensorFlow-gpu版本和cuda不对应导致,必须调整重装对应
查看 CUDA 版本:
cat /usr/local/cuda/version.txt
查看 CUDNN 版本:
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
对应表
6. tensorflow.python.framework.errors_impl.NotFoundError: FindFirstFile failed for
出现这个问题一般是由于文件路径是相对路径的问题,将出问题的路径改为绝对路径(完整路径),如下例子:
'./VOC2007/Annotations/' 改为 'Z:/pycharm_projects/CenterNet_1/VOC2007/Annotations/'