Comments (4)
如果需要能够继续训练已经保存的模型,可以将train中sess.run(init_op)/sees.run(init)替换为saver.restore,代码可以参考captcha_recognize.py中使用saver加载模型参数。
from captcha_recognize.
好的,但是我还有一个疑问?
我在看到别文章里面做训练的时候,每次训练的数据都是重新生成的。
而我们这里按描述里说的训练集只有50000,如果默认的批次大小每次128张图,那最多到390轮的时候数据应该已经用完了,那剩下的1W9千轮训练是在用重复的数据在训练?
这样不会有问题么?
from captcha_recognize.
还有个问题就是继续训练的时候,训练集是从头开始的还是能从当时记录点开始?
from captcha_recognize.
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)
- 每次识别都会重新加载模型 HOT 2
- generate HOT 1
- some other data
- Substring not found / Index out of bounds HOT 3
- Recognize all images.
- Dimensions must be equal, but are 1 and 91 for 'conv1/Conv2D' (op: 'Conv2D') with input shapes:
- terminate called after throwing an instance of 'std::bad_alloc'
- Facing problem while freezing graph for deployment HOT 1
- what result mean trainning is finished HOT 6
- Can't apply for dynamic length of captcha
- 训练时间 HOT 1
- TypeError: object of type 'zip' has no len() HOT 4
- 你好,请问下是用什么模型训练的?
- training.py Running Time HOT 5
- can't convert to tfjs model ValueError: Unsupported input_format - output_format pair: tf_saved_model - tfjs_layers_model
- don't understand how I can scan my captcha image
- python3.6 HOT 5
- Does it work with Multi Threading?
- module 'tensorflow' has no attribute 'app' HOT 1
- Resume Training HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from captcha_recognize.