20161025-tensorflow 的安装、图像识别应用、训练自己的图像识别模型
一、tensorflow的安装
github地址:
https://github.com/tensorflow/tensorflow
以源码方式安装,官方文档:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md
Installing from sources 这一节:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#installing-from-sources
$ cd ~
$ git clone https://github.com/tensorflow/tensorflow
安装 bazel:
https://www.bazel.io/versions/master/docs/install.html#ubuntu
1. Install JDK 8
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
2. Add Bazel distribution URI as a package source
$ echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
$ curl https://bazel.io/bazel-release.pub.gpg | sudo apt-key add -
3. Update and install Bazel
$ sudo apt-get update && sudo apt-get install bazel
如果下载失败需要用迅雷下载安装包(目前的是 bazel
sudo/apt-get/sorflow/install/Bazel/安装/https://github.com/ten/sorflow/ten/update/识别/
sudo/apt-get/sorflow/install/Bazel/安装/https://github.com/ten/sorflow/ten/update/识别/
-->