Git Product home page Git Product logo

Comments (4)

PatrickLib avatar PatrickLib commented on May 30, 2024

如果需要能够继续训练已经保存的模型,可以将train中sess.run(init_op)/sees.run(init)替换为saver.restore,代码可以参考captcha_recognize.py中使用saver加载模型参数。

from captcha_recognize.

l22576283 avatar l22576283 commented on May 30, 2024

好的,但是我还有一个疑问?
我在看到别文章里面做训练的时候,每次训练的数据都是重新生成的。
而我们这里按描述里说的训练集只有50000,如果默认的批次大小每次128张图,那最多到390轮的时候数据应该已经用完了,那剩下的1W9千轮训练是在用重复的数据在训练?
这样不会有问题么?

from captcha_recognize.

l22576283 avatar l22576283 commented on May 30, 2024

还有个问题就是继续训练的时候,训练集是从头开始的还是能从当时记录点开始?

from captcha_recognize.

PatrickLib avatar PatrickLib commented on May 30, 2024

1.有学习率,所以不可能所有图片训练一次就直接找到局部最优;2.每一轮训练图片是随机组合的,建议看下https://hit-scir.gitbooks.io/neural-networks-and-deep-learning-zh_cn/content/chap3/c3s4.html 关于随机梯度下降的章节;3.因为训练集每轮的数据都是随机组合的,继续训练依然是随机没有记录,没有从头开始一说。

from captcha_recognize.

Related Issues (20)

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.