Git Product home page Git Product logo

dragen1860-deep-learning-with-tensorflow-book's Introduction

TensorFlow 2.0深度学习开源书

基于TensorFlow 2.0正式版!!!

包含电子书,配套源代码等,时间仓促,源代码还没有整理完全。

主页上方有个“Clone or Download”绿色按钮,下载整个仓库即可。之所以显示在线打不开是因为Github在国外,连接不稳定就会提示打不开。

  • 提交错误或者修改等反馈意见,请在Github Issues页面提交:

https://github.com/dragen1860/Deep-Learning-with-TensorFlow-book/issues

  • TensorFlow 2.0 实战案例: https://github.com/dragen1860/TensorFlow-2.x-Tutorials

  • 联系邮箱(一般问题建议Github issues交流):liangqu.long AT gmail.com

  • 使用本开源书本的任何内容时(仅限个人的非商业用途),请注明作者和Github链接

介绍短视频

https://www.bilibili.com/video/av75331861?from=search&seid=15021582016949033280

目录

初学者交流QQ群

人工智能101学院:295208768

配套视频课程

收费,适合零基础、希望快速入门AI的朋友,提供答疑等全方位服务。

dragen1860-deep-learning-with-tensorflow-book's People

Contributors

dragen1860 avatar haorenhao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dragen1860-deep-learning-with-tensorflow-book's Issues

Performance issues in your project (by P3)

Hello! I've found a performance issue in your project: batch() should be called before map(), which could make your program more efficient. Here is the tensorflow document to support it.

Detailed description is listed below:

  • /ch10/cifar10_train.py: .batch(128)(here) should be called before .map(preprocess)(here).
  • /ch10/cifar10_train.py: .batch(64)(here) should be called before .map(preprocess)(here).
  • /ch10/resnet18_train.py: .batch(512)(here) should be called before .map(preprocess)(here).
  • /ch10/resnet18_train.py: .batch(512)(here) should be called before .map(preprocess)(here).
  • /ch15/train_scratch.py: .batch(batchsz)(here) should be called before .map(preprocess)(here).
  • /ch15/train_scratch.py: .batch(batchsz)(here) should be called before .map(preprocess)(here).
  • /ch15/train_scratch.py: .batch(batchsz)(here) should be called before .map(preprocess)(here).
  • /ch15/pokemon.py: .batch(32)(here) should be called before .map(preprocess)(here).
  • /ch15/train_transfer.py: .batch(batchsz)(here) should be called before .map(preprocess)(here).
  • /ch15/train_transfer.py: .batch(batchsz)(here) should be called before .map(preprocess)(here).
  • /ch15/train_transfer.py: .batch(batchsz)(here) should be called before .map(preprocess)(here).
  • /ch08/nb.py: .batch(128)(here) should be called before .map(proprocess)(here).
  • /ch08/nb.py: .batch(128)(here) should be called before .map(proprocess)(here).

Besides, you need to check the function called in map()(e.g., proprocess called in .map(proprocess)) whether to be affected or not to make the changed code work properly. For example, if proprocess needs data with shape (x, y, z) as its input before fix, it would require data with shape (batch_size, x, y, z).

Looking forward to your reply. Btw, I am very glad to create a PR to fix it if you are too busy.

Performance issues in ch10/cifar10_train.py(P2)

Hello,I found a performance issue in ch10/cifar10_train.py ,
train_db = train_db.shuffle(1000).map was called without num_parallel_calls.
I think it will increase the efficiency of your program if you add this.

The same issues also exist in test_db = test_db.map ,
train_db = train_db.shuffle(1000).map,
test_db = test_db.map,
train_db = train_db.map ,test_db = test_db.shuffle(1000).batch(batchsz).map ,
db_train = db_train.shuffle(1000).map ,db_val = db_val.mapdb_test = db_test.map
db = db.shuffle(1000).map
db_train = db_train.shuffle(1000).mapdb_val = db_val.mapdb_test = db_test.map
train_db = train_db.shuffle(1000).map
val_db = val_db.shuffle(1000).map

Here is the documemtation of tensorflow to support this thing.

Looking forward to your reply. Btw, I am very glad to create a PR to fix it if you are too busy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.