本機的python環境採用anaconda3創建的python2.7,其中所有安裝的依賴和庫均在這個虛擬環境中
問題一:
E tensorflow/stream_executor/cuda/cuda_dnn.cc:363] Loaded runtime CuDNN library: 7.0.5 but source was compiled with: 7.1.4. CuDNN library major and minor version needs to match or have higher minor version in case of CuDNN 7.0 or later version. If using a binary install, upgrade your CuDNN library. If building from sources, make sure the library loaded at runtime is compatible with the version specified during compile configuration
原因:說的是cudnn問題,其實是安裝的tensorflow版本較高,不兼容cudnn,本及安裝的是tensorflow=1.12.0版本的
解決:卸載原有tensorflow ,重新安裝tensorflow=1.10
pip uninstall tensorflow-gpu
pip install tensorflow-gpu==1.10
問題2:
出現numpy changed ………………,其原因跟可能是tensorflow降級後,導致numpy跟着降級了
解決:升級numpy
pip install --upgrade numpy
問題三:
找不到 data/VOCdevkit2007/results/VOC2007/Main/xxxxxx.txt
這個原因是配置數據文件的時候,沒有完全按照pascal_voc格式準備,未設置result文件價及其內容
應該按照這樣的格式嚴格分配數據
問題4:
【Python問題】ImportError: No module named 'yaml' 的解決方法
解決方法:
pip install pyyaml
注意:pip install yaml無效 ,conda install yaml能成功安裝,但是不起作用