TensorFlow-Examples README

The project's README from github.com/aymericdamien/TensorFlow-Examples. As one markdown file: README.md.

TensorFlow Examples

This tutorial was designed for easily diving into TensorFlow, through examples. For readability, it includes both notebooks and source codes with explanation, for both TF v1 & v2.

It is suitable for beginners who want to find clear and concise examples about TensorFlow. Besides the traditional 'raw' TensorFlow implementations, you can also find the latest TensorFlow API practices (such as layers, estimator, dataset, ...).

Update (05/16/2020): Moving all default examples to TF2. For TF v1 examples: check here.

Tutorial index

0 - Prerequisite

1 - Introduction

2 - Basic Models

3 - Neural Networks

Supervised
Unsupervised

4 - Utilities

5 - Data Management

6 - Hardware

TensorFlow v1

The tutorial index for TF v1 is available here: TensorFlow v1.15 Examples. Or see below for a list of the examples.

Dataset

Some examples require MNIST dataset for training and testing. Don't worry, this dataset will automatically be downloaded when running examples. MNIST is a database of handwritten digits, for a quick description of that dataset, you can check this notebook.

Official Website: http://yann.lecun.com/exdb/mnist/.

Installation

To download all the examples, simply clone this repository:

git clone https://github.com/aymericdamien/TensorFlow-Examples

To run them, you also need the latest version of TensorFlow. To install it:

pip install tensorflow

or (with GPU support):

pip install tensorflow_gpu

For more details about TensorFlow installation, you can check TensorFlow Installation Guide

TensorFlow v1 Examples - Index

The tutorial index for TF v1 is available here: TensorFlow v1.15 Examples.

0 - Prerequisite

1 - Introduction

2 - Basic Models

3 - Neural Networks

Supervised
Unsupervised

4 - Utilities

5 - Data Management

6 - Multi GPU

More Examples

The following examples are coming from TFLearn, a library that provides a simplified interface for TensorFlow. You can have a look, there are many examples and pre-built operations and layers.

Tutorials

Examples

TensorFlow-Examples (aymericdamien/TensorFlow-Examples)

Searching Database…

这是什么?一套动手教程合集,通过可直接运行的示例来教 TensorFlow,从最简单的 hello world 笔记本一直到深度神经网络和 GAN。
每个示例是可以直接运行的笔记本,还是只是代码列表?是带讲解的 Jupyter 笔记本;TF v1 部分还额外提供了相同示例的纯源码文件。
我怎么把所有示例拉到自己的电脑上?克隆这个仓库即可——就这一步,合集里的每个示例都会下载下来。
在笔记本能跑起来之前,需要先安装什么?需要最新版的 TensorFlow;README 还指明了带 GPU 支持的安装方式,以及官方的 TensorFlow 安装指南。
代码跟得上最新的 TensorFlow 版本吗?默认示例已在 2020 年 5 月的更新中迁移到 TF2,所以基本是 TF 2.x 时代的代码;TF v1.15 的示例单独放在另一个索引里。
我是深度学习新手,从这里入门合适吗?合适——它面向想要清晰简洁示例的初学者,开头甚至还附了前置知识:机器学习入门和 MNIST 数据集介绍。
这个合集是怎么组织的?按编号索引:0 前置知识,1 入门,2 基础模型(线性/逻辑回归、Word2Vec、GBDT),3 神经网络,分为监督式(CNN、RNN/LSTM)和无监督(自编码器、DCGAN),4 工具类(TensorBoard、保存/恢复、自定义层),5 数据管理(数据管道、TFRecords、数据增强),6 多 GPU 训练。
我需要自己下载 MNIST 数据集吗?不用——需要它的示例在运行时会自动获取 MNIST。MNIST 是一个手写数字数据库,常用于训练和测试。
示例用的是现代高层 API,还是底层原始代码?两者都有——除了传统的底层写法,还有采用最新 TensorFlow API 实践的示例,比如 layers、estimator 和 dataset。
页面底部的 TFLearn 示例是关于什么的?是一个附加章节,收录了来自 TFLearn 的示例。TFLearn 是一个为 TensorFlow 提供简化接口的库,里面还有一个快速上手例子,演示如何构建并训练一个深度神经网络分类器。
Size
10 MB
Stars
43.7K
Updated
CommitOct 23
Age
10y
Commits · 90 Days