crnn
crnn copied to clipboard
Meaning of parameter?
Hello, I'm a beginner. When I learn the code, I can't understand the meaning of the parameters in config.lua(). function getConfig() local config = { nClasses = 36, -- 分类 maxT = 26, -- ? displayInterval = 100, -- 显示间隔? testInterval = 1000, -- 测试间隔? nTestDisplay = 15, -- ? trainBatchSize = 64, -- 训练块 valBatchSize = 256, -- ? snapshotInterval = 10000, -- 快照间隔? maxIterations = 2000000, -- 最大迭代 optimMethod = optim.adadelta,-- 优化方法:自适应学习率调整 optimConfig = {}, -- 优化配置 trainSetPath = '/home/mdb/train/data.mdb', valSetPath = '/home/mdb/test/data.mdb', } return config end Thank you!
function createModel(config) local nc = config.nClasses -- 输出种类 36 local nl = nc + 1 -- 37? local nt = config.maxT -- ?
—— means?Thank you!
@LinJM @bgshih @varun-suresh
nc: number of classes (characters) to recognize (a, b, c, ...) nl: we need one more pseudo character ("blank") for the CTC layer, therefore nc+1 nt: length of output sequence (length of RNN output)
Look into the paper at Figure 1 - it shows a nice overview of the components of the neural net.
@githubharald Ok! Thank you!