21case-tf “完成chapter-1/2/3”

今天在家里的ubuntu-1804环境,python2.7+Anaconda2使用conda国内源,在“NVIDIA-SMI 440.33.01 Driver Version: 440.33.01 CUDA Version: 10.2”条件下,安装conda install tensorflow-gpu==1.13.1版本,成功验证chapter_3的slim模型微调功能。

其中,如果使用1.8.0等底版本的tf,无法兼容cuda10(我的系统是1804),运行python会出现调用gpu的失败打印,研究下来tensorflow-gpu的1.13.1可以兼容cuda10,,另外,建议不要使用pip install,而是使用conda install更容易快速安装包,具体安装包如下:

(21exp-gpu) wangwei@falls:~/21case/21-Examples/chapter_3$ conda list

_libgcc_mutex             0.1                        main    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

_tflow_select             2.1.0                       gpu    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

absl-py                   0.8.1                    py27_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

astor                     0.8.0                    py27_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

backports                 1.0                        py_2    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

backports.weakref         1.0.post1                  py_1    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

blas                      1.0                         mkl    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

c-ares                    1.15.0            h7b6447c_1001    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

ca-certificates           2019.11.27                    0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

certifi                   2019.11.28               py27_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

cudatoolkit               10.0.130                      0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

cudnn                     7.6.5                cuda10.0_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

cupti                     10.0.130                      0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

enum34                    1.1.6                    py27_1    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

funcsigs                  1.0.2                    py27_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

futures                   3.3.0                    py27_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

gast                      0.3.2                      py_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

grpcio                    1.16.1           py27hf8bcb03_1    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

h5py                      2.9.0            py27h7918eee_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

hdf5                      1.10.4               hb1b8bf9_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

intel-openmp              2019.4                      243    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

keras-applications        1.0.8                      py_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

keras-preprocessing       1.1.0                      py_1    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

libedit                   3.1.20181209         hc058e9b_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

libffi                    3.2.1                hd88cf55_4    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

libgcc-ng                 9.1.0                hdf63c60_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

libgfortran-ng            7.3.0                hdf63c60_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

libprotobuf               3.11.2               hd408876_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

libstdcxx-ng              9.1.0                hdf63c60_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

linecache2                1.0.0                    py27_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

markdown                  3.1.1                    py27_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

mkl                       2019.4                      243    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

mkl-service               2.3.0            py27he904b0f_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

mkl_fft                   1.0.15           py27ha843d7b_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

mkl_random                1.1.0            py27hd6b4f25_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

mock                      3.0.5                    py27_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

ncurses                   6.1                  he6710b0_1    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

numpy                     1.16.5           py27h7e9f1db_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

numpy-base                1.16.5           py27hde5b4d6_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

openssl                   1.1.1d               h7b6447c_3    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

pip                       19.3.1                   py27_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

protobuf                  3.11.2           py27he6710b0_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

python                    2.7.17               h9bab390_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

readline                  7.0                  h7b6447c_5    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

scipy                     1.2.1            py27h7c811a0_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

setuptools                42.0.2                   py27_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

six                       1.13.0                   py27_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

sqlite                    3.30.1               h7b6447c_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

tensorboard               1.13.1           py27hf484d3e_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

tensorflow                1.13.1          gpu_py27hcb41dfa_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

tensorflow-base           1.13.1          gpu_py27h8d69cac_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

tensorflow-estimator      1.13.0                     py_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

tensorflow-gpu            1.13.1               h0d30ee6_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

termcolor                 1.1.0                    py27_1    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

tk                        8.6.8                hbc83047_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

traceback2                1.4.0                    py27_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

unittest2                 1.1.0                    py27_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

werkzeug                  0.16.0                     py_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

wheel                     0.33.6                   py27_0    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

zlib                      1.2.11               h7b6447c_3    https://mirrors.ustc.edu.cn/anaconda/pkgs/main

Leave a Reply

Your email address will not be published. Required fields are marked *