TensorFlow-Course README

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


TensorFlow Course_


.. image:: https://travis-ci.org/instillai/TensorFlow-Course.svg?branch=master :target: https://travis-ci.org/instillai/TensorFlow-Course .. image:: https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat :target: https://github.com/open-source-for-science/TensorFlow-Course/pulls .. image:: https://img.shields.io/twitter/follow/machinemindset.svg?label=Follow&style=social :target: https://twitter.com/machinemindset .. image:: https://zenodo.org/badge/151300862.svg :target: https://zenodo.org/badge/latestdoi/151300862

This repository aims to provide simple and ready-to-use tutorials for TensorFlow. Each tutorial includes source code and most of them are associated with a documentation.

.. .. image:: _img/mainpage/TensorFlow_World.gif

.. The links. .. _TensorFlow: https://www.tensorflow.org/install/ .. _Wikipedia: https://en.wikipedia.org/wiki/TensorFlow/

########################################################################## Sponsorship ##########################################################################

To support maintaining and upgrading this project, please kindly consider Sponsoring the project developer <https://github.com/sponsors/astorfi/dashboard>_.

Any level of support is a great contribution here :heart:

Status: This project has been updated to TensorFlow 2.3.

################# Table of Contents ################# .. contents:: :local: :depth: 3

========================================== Download Free TensorFlow Roadmap EBook

.. raw:: html

.. raw:: html

.. raw:: html

========================================== Slack Group

.. raw:: html

.. raw:: html

.. raw:: html

What is TensorFlow?

TensorFlow is an open-source software library for dataflow programming across a range of tasks. It is a symbolic math library, and is also used for machine learning applications such as neural networks. It is used for both research and production at Google often replacing its closed-source predecessor, DistBelief.

TensorFlow was developed by the Google Brain team for internal Google use. It was released under the Apache 2.0 open source license on November 9, 2015.

============ Motivation

There are different motivations for this open source project. TensorFlow (as we write this document) is one of / the best deep learning frameworks available. The question that should be asked is why has this repository been created when there are so many other tutorials about TensorFlow available on the web?

Why use TensorFlow?

Deep Learning is in very high interest these days - there's a crucial need for rapid and optimized implementations of the algorithms and architectures. TensorFlow is designed to facilitate this goal.

The strong advantage of TensorFlow is it flexibility in designing highly modular models which can also be a disadvantage for beginners since a lot of the pieces must be considered together when creating the model.

This issue has been facilitated as well by developing high-level APIs such as Keras <https://keras.io/>_ and Slim <https://github.com/tensorflow/models/blob/031a5a4ab41170d555bc3e8f8545cf9c8e3f1b28/research/inception/inception/slim/README.md>_ which abstract a lot of the pieces used in designing machine learning algorithms.

The interesting thing about TensorFlow is that it can be found anywhere these days. Lots of the researchers and developers are using it and its community is growing at the speed of light! So many issues can be dealt with easily since they're usually the same issues that a lot of other people run into considering the large number of people involved in the TensorFlow community.

What's the point of this repository?

Developing open source projects for the sake of just developing something is not the reason behind this effort. Considering the large number of tutorials that are being added to this large community, this repository has been created to break the jump-in and jump-out process that usually happens to most of the open source projects, but why and how?

First of all, what's the point of putting effort into something that most of the people won't stop by and take a look? What's the point of creating something that does not help anyone in the developers and researchers community? Why spend time for something that can easily be forgotten? But how we try to do it? Even up to this very moment there are countless tutorials on TensorFlow whether on the model design or TensorFlow workflow.

Most of them are too complicated or suffer from a lack of documentation. There are only a few available tutorials which are concise and well-structured and provide enough insight for their specific implemented models.

The goal of this project is to help the community with structured tutorials and simple and optimized code implementations to provide better insight about how to use TensorFlow quick and effectively.

It is worth noting that, the main goal of this project is to provide well-documented tutorials and less-complicated code!

================================================= TensorFlow Installation and Setup the Environment

.. image:: _img/mainpage/installation-logo.gif :height: 100px :width: 200 px :scale: 50 % :alt: alternate text :align: right :target: docs/tutorials/installation

.. _TensorFlow Installation: https://www.tensorflow.org/install

In order to install TensorFlow please refer to the following link:

.. image:: _img/mainpage/installation.gif :target: https://www.tensorflow.org/install

The virtual environment installation is recommended in order to prevent package conflict and having the capacity to customize the working environment.

==================== TensorFlow Tutorials

The tutorials in this repository are partitioned into relevant categories.

==========================

Warm-up

.. image:: _img/mainpage/welcome.gif :height: 100px :width: 200 px :scale: 50 % :alt: alternate text :align: right

.. _colab: https://colab.research.google.com/github/instillai/TensorFlow-Course/blob/master/codes/ipython/0-welcome/welcome.ipynb .. _Documentationcnnwelcome: docs/tutorials/0-welcome .. _ipythonwelcome: codes/ipython/0-welcome/welcome.ipynb .. _pythonwelcome: https://github.com/instillai/TensorFlow-Course/blob/master/codes/python/0-welcome/welcome.py .. _videowelcome: https://youtu.be/xd0DVygHlNE

.. |Welcome| image:: https://colab.research.google.com/assets/colab-badge.svg :target: https://colab.research.google.com/github/instillai/TensorFlow-Course/blob/master/codes/ipython/0-welcome/welcome.ipynb

.. |youtubeim| image:: _img/mainpage/YouTube.png :target: https://github.com/instillai/TensorFlow-Course/blob/master/_img/mainpage/YouTube.png

+----+---------------------+--------------------------+------------------------------------------------------------------------+-------------------------------------------+ | # | topic | Run | Source Code | Media | +====+=====================+==========================+========================================================================+===========================================+ | 1 | Start-up | |Welcome| | Notebook <ipythonwelcome_>_ / Python <pythonwelcome_>_ | Video Tutorial <videowelcome_>_ | +----+---------------------+--------------------------+------------------------------------------------------------------------+-------------------------------------------+

==========================

Basics

.. raw:: html

.. raw:: html

.. raw:: html

.. raw:: html


.. _ipythontensors: codes/ipython/1-basics/tensors.ipynb .. _pythontensors: codes/python/1-basics/tensors.py .. _videotensors: https://youtu.be/Od-VvnYUbFw .. |Tensors| image:: https://colab.research.google.com/assets/colab-badge.svg :target: https://colab.research.google.com/github/instillai/TensorFlow-Course/blob/master/codes/ipython/1-basics/tensors.ipynb

.. _ipythonad: codes/ipython/1-basics/automatic_differentiation.ipynb .. _pythonad: codes/python/1-basics/automatic_differentiation.py .. _videoad: https://youtu.be/l-MGydWW-UE .. |AD| image:: https://colab.research.google.com/assets/colab-badge.svg :target: https://colab.research.google.com/github/instillai/TensorFlow-Course/blob/master/codes/ipython/1-basics/automatic_differentiation.ipynb

.. _ipythongraphs: codes/ipython/1-basics/graph.ipynb .. _pythongraphs: codes/python/1-basics/graph.py .. _videographs: https://youtu.be/P9xA1s6AUNk .. |graphs| image:: https://colab.research.google.com/assets/colab-badge.svg :target: https://colab.research.google.com/github/instillai/TensorFlow-Course/blob/master/codes/ipython/1-basics/graph.ipynb

.. _ipythonmodels: codes/ipython/1-basics/models.ipynb .. _pythonmodels: codes/python/1-basics/models.py .. _videomodels: https://youtu.be/WnlUE04REOY .. |models| image:: https://colab.research.google.com/assets/colab-badge.svg :target: https://colab.research.google.com/github/instillai/TensorFlow-Course/blob/master/codes/ipython/1-basics/models.ipynb

+----+-----------------------------------+--------------------------+------------------------------------------------------------------------+-----------------------------------------+ | # | topic | Run | Source Code | Media | +====+===================================+==========================+========================================================================+=========================================+ | 1 | Tensors | |Tensors| | Notebook <ipythontensors_>_ / Python <pythontensors_>_ | Video Tutorial <videotensors_>_ | +----+-----------------------------------+--------------------------+------------------------------------------------------------------------+-----------------------------------------+ | 2 | Automatic Differentiation | |AD| | Notebook <ipythonad_>_ / Python <pythonad_>_ | Video Tutorial <videoad_>_ | +----+-----------------------------------+--------------------------+------------------------------------------------------------------------+-----------------------------------------+ | 3 | Introduction to Graphs | |graphs| | Notebook <ipythongraphs_>_ / Python <pythongraphs_>_ | Video Tutorial <videographs_>_ | +----+-----------------------------------+--------------------------+------------------------------------------------------------------------+-----------------------------------------+ | 4 | TensorFlow Models | |models| | Notebook <ipythonmodels_>_ / Python <pythonmodels_>_ | Video Tutorial <videomodels_>_ | +----+-----------------------------------+--------------------------+------------------------------------------------------------------------+-----------------------------------------+

==========================

Basic Machine Learning

.. raw:: html

.. raw:: html

.. raw:: html

.. raw:: html


.. .. image:: _img/mainpage/basicmodels.gif .. :height: 100px .. :width: 200 px .. :scale: 50 % .. :alt: alternate text .. :align: right

.. _ipythonlinearreg: codes/ipython/basics_in_machine_learning/linearregression.ipynb .. _pythonlinearreg: codes/python/basics_in_machine_learning/linearregression.py .. _tutoriallinearreg: https://www.machinelearningmindset.com/linear-regression-with-tensorflow/ .. _videoinearreg: https://youtu.be/2RTBBiKKuLI

.. _tutorialdataaugmentation: https://www.machinelearningmindset.com/data-augmentation-with-tensorflow/ .. _ipythondataaugmentation: https://github.com/instillai/TensorFlow-Course/blob/master/codes/ipython/basics_in_machine_learning/dataaugmentation.ipynb .. _pythondataaugmentation: https://github.com/instillai/TensorFlow-Course/blob/master/codes/python/basics_in_machine_learning/dataaugmentation.py .. _videodataaugmentation: https://youtu.be/HbzR2snHJF0

.. |lr| image:: https://colab.research.google.com/assets/colab-badge.svg :target: https://colab.research.google.com/github/instillai/TensorFlow-Course/blob/master/codes/ipython/basics_in_machine_learning/linearregression.ipynb .. |da| image:: https://colab.research.google.com/assets/colab-badge.svg :target: https://colab.research.google.com/github/instillai/TensorFlow-Course/blob/master/codes/ipython/basics_in_machine_learning/dataaugmentation.ipynb

+----+-----------------------------------+--------------------------+------------------------------------------------------------------------------------+----------------------------------------------+----------------------------------------------+ | # | topic | Run | Source Code | More | Media | +====+===================================+==========================+====================================================================================+==============================================+==============================================+ | 1 | Linear Regression | |lr| | Notebook <ipythonlinearreg_>_ / Python <pythonlinearreg_>_ | Tutorial <tutoriallinearreg_>_ | Video Tutorial <videoinearreg_>_ | +----+-----------------------------------+--------------------------+------------------------------------------------------------------------------------+----------------------------------------------+----------------------------------------------+ | 2 | Data Augmentation | |da| | Notebook <ipythondataaugmentation_>_ / Python <pythondataaugmentation_>_ | Tutorial <tutorialdataaugmentation_>_ | Video Tutorial <videodataaugmentation_>_ | +----+-----------------------------------+--------------------------+------------------------------------------------------------------------------------+----------------------------------------------+----------------------------------------------+

.. +----+----------------------------+----------------------------------------------------------------------------------------+----------------------------------------------+

==========================

Neural Networks

.. raw:: html

.. raw:: html

.. raw:: html

.. raw:: html

<br>

.. _ipythonmlp: https://github.com/instillai/TensorFlow-Course/blob/master/codes/ipython/neural_networks/mlp.ipynb .. _pythonmlp: https://github.com/instillai/TensorFlow-Course/blob/master/codes/python/neural_networks/mlp.py .. _videomlp: https://youtu.be/w20efZqSK2Y

.. _ipythoncnn: https://github.com/instillai/TensorFlow-Course/blob/master/codes/ipython/neural_networks/CNNs.ipynb .. _pythoncnn: https://github.com/instillai/TensorFlow-Course/blob/master/codes/python/neural_networks/cnns.py .. _videocnn: https://youtu.be/WVifZBCRz8g

.. |mlp| image:: https://colab.research.google.com/assets/colab-badge.svg :target: https://colab.research.google.com/github/instillai/TensorFlow-Course/blob/master/codes/ipython/neural_networks/mlp.ipynb .. |cnn| image:: https://colab.research.google.com/assets/colab-badge.svg :target: https://colab.research.google.com/github/instillai/TensorFlow-Course/blob/master/codes/ipython/neural_networks/CNNs.ipynb

+----+------------------------------------------+--------------------------+------------------------------------------------------+------------------------------------+ | # | topic | Run | Source Code | Media | +====+==========================================+==========================+======================================================+====================================+ | 1 | Multi Layer Perceptron | |mlp| | Notebook <ipythonmlp_>_ / Python <pythonmlp_>_ | Video Tutorial <videomlp_>_ | +----+------------------------------------------+--------------------------+------------------------------------------------------+------------------------------------+ | 2 | Convolutional Neural Networks | |cnn| | Notebook <ipythoncnn_>_ / Python <pythoncnn_>_ | Video Tutorial <videocnn_>_ | +----+------------------------------------------+--------------------------+------------------------------------------------------+------------------------------------+

==========================

Advanced

.. raw:: html

.. raw:: html

.. raw:: html

.. raw:: html

<br>

.. _ipythoncustomtr: https://github.com/instillai/TensorFlow-Course/blob/master/codes/ipython/advanced/custom_training.ipynb .. _pythoncustomtr: https://github.com/instillai/TensorFlow-Course/blob/master/codes/python/advanced/custom_training.py .. _videocustomtr: https://youtu.be/z5gcabfyPfA

.. _ipythondgenerator: https://github.com/instillai/TensorFlow-Course/blob/master/codes/ipython/advanced/dataset_generator.ipynb .. _pythondgenerator: https://github.com/instillai/TensorFlow-Course/blob/master/codes/python/advanced/dataset_generator.py .. _videodgenerator: https://youtu.be/-YsgMdDPu3g

.. _ipythontfrecords: https://github.com/instillai/TensorFlow-Course/blob/master/codes/ipython/advanced/tfrecords.ipynb .. _pythontfrecords: https://github.com/instillai/TensorFlow-Course/blob/master/codes/python/advanced/tfrecords.py .. _videotfrecords: https://youtu.be/zqavy_5QMk8

.. |ctraining| image:: https://colab.research.google.com/assets/colab-badge.svg :target: https://colab.research.google.com/github/instillai/TensorFlow-Course/blob/master/codes/ipython/advanced/custom_training.ipynb

.. |dgenerator| image:: https://colab.research.google.com/assets/colab-badge.svg :target: https://colab.research.google.com/github/instillai/TensorFlow-Course/blob/master/codes/ipython/advanced/dataset_generator.ipynb

.. |tfrecords| image:: https://colab.research.google.com/assets/colab-badge.svg :target: https://colab.research.google.com/github/instillai/TensorFlow-Course/blob/master/codes/ipython/advanced/tfrecords.ipynb

+----+------------------------------------------+--------------------------+--------------------------------------------------------------------+----------------------------------------+ | # | topic | Run | Source Code | Media | +====+==========================================+==========================+====================================================================+========================================+ | 1 | Custom Training | |ctraining| | Notebook <ipythoncustomtr_>_ / Python <pythoncustomtr_>_ | Video Tutorial <videocustomtr_>_ | +----+------------------------------------------+--------------------------+--------------------------------------------------------------------+----------------------------------------+ | 2 | Dataset Generator | |dgenerator| | Notebook <ipythondgenerator_>_ / Python <pythondgenerator_>_ | Video Tutorial <videodgenerator_>_ | +----+------------------------------------------+--------------------------+--------------------------------------------------------------------+----------------------------------------+ | 3 | Create TFRecords | |tfrecords| | Notebook <ipythontfrecords_>_ / Python <pythontfrecords_>_ | Video Tutorial <videotfrecords_>_ | +----+------------------------------------------+--------------------------+--------------------------------------------------------------------+----------------------------------------+

===================== Some Useful Tutorials

============= Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change. For typos, please do not create a pull request. Instead, declare them in issues or email the repository owner.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

Please consider the following criterions in order to help us in a better way:

Final Note

We are looking forward to your kind feedback. Please help us to improve this open source project and make our work better. For contribution, please create a pull request and we will investigate it promptly. Once again, we appreciate your kind feedback and elaborate code inspections.

======================== Developers

Company: Instill AI [Website <https://instillai.com/>_]

Creator: Machine Learning Mindset [Blog <https://machinelearningmindset.com/blog/>, GitHub <https://github.com/machinelearningmindset>, Twitter <https://twitter.com/machinemindset>_]

Developer: Amirsina Torfi [GitHub <https://github.com/astorfi>, Personal Website <https://astorfi.github.io/>, Linkedin <https://www.linkedin.com/in/amirsinatorfi/>_ ]

TensorFlow-Course (instillai/TensorFlow-Course)

Searching Database…

这是什么?这是一套精选的、简单易用的 TensorFlow 教程,内容从基础的张量和自动微分,到 CNN、自定义训练循环和 TFRecords 都有涵盖。
这是单独一个教程,还是一系列课程?这是一套有组织的系列课程,每节课都提供 Jupyter 笔记本和等效的纯 Python 脚本,很多课还配有文字文档和视频教程。
我该怎么学习这些教程?在 README 的表格中选一个主题,然后打开 codes/ 目录下的 Jupyter 笔记本或对应的 Python 文件;部分主题还附有文字教程或视频讲解的链接。
学之前需要先安装 TensorFlow 和 Python 吗?需要。所有代码示例都是用 Python 编写、基于 TensorFlow 库的,因此你需要一个已安装 TensorFlow 的可用 Python 环境。
这些内容是有结构的学习路径,还是零散的示例?它遵循由浅入深的路线:从基础(张量、计算图)到基础机器学习模型(线性回归),再到神经网络(MLP、CNN),最后是进阶主题(自定义训练、数据集生成器、TFRecords)。
这门课程面向哪些人?面向 TensorFlow 的初学者,他们希望通过简单、动手实践的示例学习,而不必在 TensorFlow 灵活但有时令人困惑的底层 API 中摸索。
为什么要做这门课程,而不直接推荐现有的 TensorFlow 教程?作者认为现有教程没有让 TensorFlow 灵活却复杂的 API 对初学者足够友好,因此他们制作了一套简化的、开箱即用的示例。
除了这门课程,还有其他推荐的 TensorFlow 教程吗?是的,README 中链接了一些额外资源,例如 TensorFlow Examples、Sungjoon 的 TensorFlow-101、Terry Um 的 TensorFlow Exercises,以及一个时间序列分类示例。
Creator
instillai
Size
21.2 MB
Stars
16.3K
Age
8y
Commits · 90 Days