中文翻译文件名以zh_CN或_CN结尾。
3-B. Layers API ([暂缺])
3-C. Keras API (Notebook)
-
保存&回复 (Notebook)
-
集成学习 (Notebook)
-
CIFAR-10 (Notebook)
-
Inception模型 (Notebook)
-
迁移学习 (Notebook)
-
视频数据 (Notebook)
-
微调 (Notebook)
-
对抗样本 (Notebook)
-
MNIST的对抗样本 (Notebook)
-
可视化分析 (Notebook)
13-B. MNIST的可视化分析 ([暂缺])
-
DeepDream (Notebook)
-
风格迁移 (Notebook)
-
强化学习 ([暂缺])
-
Estimator API (Notebook)
-
TFRecords & Dataset API (Notebook)
-
超参数优化 (Notebook)
-
自然语言处理 (Notebook)
-
机器翻译 (Notebook)
-
图像描述 (Notebook)
-
时间序列预测 (Notebook)
Original author is Magnus Erik Hvass Pedersen
- These tutorials are intended for beginners in Deep Learning and TensorFlow.
- Each tutorial covers a single topic.
- The source-code is well-documented.
- There is a YouTube video for each tutorial.
3-B. Layers API (Notebook)
3-C. Keras API (Notebook)
-
Save & Restore (Notebook)
-
Ensemble Learning (Notebook)
-
CIFAR-10 (Notebook)
-
Inception Model (Notebook)
-
Transfer Learning (Notebook)
-
Video Data (Notebook)
-
Fine-Tuning (Notebook)
-
Adversarial Examples (Notebook)
-
Adversarial Noise for MNIST (Notebook)
-
Visual Analysis (Notebook)
13-B. Visual Analysis for MNIST (Notebook)
-
DeepDream (Notebook)
-
Style Transfer (Notebook)
-
Reinforcement Learning (Notebook)
-
Estimator API (Notebook)
-
TFRecords & Dataset API (Notebook)
-
Hyper-Parameter Optimization (Notebook)
-
Natural Language Processing (Notebook)
-
Machine Translation (Notebook)
-
Image Captioning (Notebook)
-
Time-Series Prediction (Notebook)
These tutorials are also available as YouTube videos.
Some of these tutorials use an API called PrettyTensor for creating Neural Networks in TensorFlow, but the PrettyTensor API is now obsolete. Some of the Notebooks are therefore also obsolete and they are clearly marked at the top of each Notebook. It is recommended that you instead use the Keras API for creating Neural Networks in TensorFlow.
See the selected list of forks for community modifications to these tutorials.
Some of the Python Notebooks use source-code located in different files to allow for easy re-use across multiple tutorials. It is therefore recommended that you download the whole repository from GitHub, instead of just downloading the individual Python Notebooks.
The easiest way to download and install these tutorials is by using git from the command-line:
git clone https://github.com/Hvass-Labs/TensorFlow-Tutorials.git
This will create the directory TensorFlow-Tutorials
and download all the files to it.
This also makes it easy to update the tutorials, simply by executing this command inside that directory:
git pull
You can also download the contents of the GitHub repository as a Zip-file and extract it manually.
There are different ways of installing and running TensorFlow. This section describes how I did it for these tutorials. You may want to do it differently and you can search the internet for instructions.
If you are new to using Python and Linux, etc. then this may be challenging to get working and you may need to do internet searches for error-messages, etc. It will get easier with practice.
These tutorials were developed on Linux using Python 3.5 / 3.6 (the Anaconda distribution) and PyCharm.
There are reports that Python 2.7 gives error messages with these tutorials. Please make sure you are using Python 3.5 or later!
After installing Anaconda, you should create a conda environment so you do not destroy your main installation in case you make a mistake somewhere:
conda create --name tf python=3
Now you can switch to the new environment by running the following (on Linux):
source activate tf
The tutorials require several Python packages to be installed. The packages are listed in requirements.txt First you need to edit this file and select whether you want to install the CPU or GPU version of TensorFlow.
To install the required Python packages and dependencies you first have to activate the conda-environment as described above, and then you run the following command in a terminal:
pip install -r requirements.txt
Note that the GPU-version of TensorFlow also requires the installation of various NVIDIA drivers, which is not described here.
You should now be able to run the tutorials in the Python Notebooks:
cd ~/development/TensorFlow-Tutorials/ # Your installation directory.
jupyter notebook
This should start a web-browser that shows the list of tutorials. Click on a tutorial to load it.
These tutorials and source-code are published under the MIT License which allows very broad use for both academic and commercial purposes.
A few of the images used for demonstration purposes may be under copyright. These images are included under the "fair usage" laws.
You are very welcome to modify these tutorials and use them in your own projects. Please keep a link to the original repository.