Comments (3)
Just noticed the same comment in your code :)
from crnn-with-stn.
If I start decoding with zero I indeed receive "garbage" sometimes (usually a duplicate of first character), but if the same slicing is is in the cost function then it's not suprising
from crnn-with-stn.
Hi,
I wonder what is the theoretical basis for starting decoding from 3rd position. I'm referring to this line:
ctc_decode = bknd.ctc_decode(y_pred[:, 2:, :], input_length=np.ones(shape[0])*shape[1])[0][0]
In image_ocr.py example on keras github there's a comment:
# the 2 is critical here since the first couple outputs of the RNN # tend to be garbage:
But why? And why everyone is using 2 regardless of dataset, image width and text length?
To be honest, I don't know the specific reason for this, either.
from crnn-with-stn.
Related Issues (20)
- Can you please post your trained weights? HOT 17
- Building OCR to detect and recognise HOT 4
- about the input shape HOT 11
- I'm having a problem to Text
- Problem related to Text Detection HOT 1
- Learning rate HOT 2
- input and output name HOT 3
- error while using the saved model HOT 7
- alternative way of concatenating two LSTM cell HOT 6
- y_true (label) in CTC HOT 2
- Bi-LTSM's implementation HOT 1
- concept of y_pred[:,2:,:] tensor?
- I encountered a problem when predicting? HOT 5
- advice for training STN
- 你好,想问一下你的train数据格式是什么样的
- 你好,加载模型时遇到了一些问题 HOT 2
- 你好,加入新数据后遇到的问题 HOT 1
- 请问The channel dimension of the inputs should be defined. Found `None`.是为什么呢?
- STN location
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 crnn-with-stn.