import tensorflow.contrib.slim as slim ImportError: No module named slim

import tensorflow.contrib.slim as slim ImportError: No module named slim

处理方法

参考网站https://github.com/tensorflow/models/tree/master/slim

Installing latest version of TF-slim

export TF_BINARY_URL=https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_CONTAINER_TYPE=CPU,TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=cpu-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.10.0rc0-cp27-none-linux_x86_64.whl
sudo pip install --upgrade $TF_BINARY_URL

python

import tensorflow.contrib.slim as slim; eval = slim.evaluation.evaluate_once
显示ok

你可能感兴趣的:(tensorflow,python,深度学习)