#include <ctc.h>
Definition at line 30 of file ctc.h.
◆ ComputeCTCTargets()
Definition at line 54 of file ctc.cpp.
57 std::unique_ptr<CTC> ctc(
new CTC(labels, null_char, outputs));
58 if (!ctc->ComputeLabelLimits()) {
64 ctc->ComputeSimpleTargets(&simple_targets);
66 float bias_fraction = ctc->CalculateBiasFraction();
67 simple_targets *= bias_fraction;
68 ctc->outputs_ += simple_targets;
73 ctc->Forward(&log_alphas);
74 ctc->Backward(&log_betas);
76 log_alphas += log_betas;
77 ctc->NormalizeSequence(&log_alphas);
78 ctc->LabelsToClasses(log_alphas, targets);
◆ NormalizeProbs()
static void tesseract::CTC::NormalizeProbs |
( |
NetworkIO * |
probs | ) |
|
|
inlinestatic |
Definition at line 36 of file ctc.h.
The documentation for this class was generated from the following files:
- /tesseract/src/training/ctc.h
- /tesseract/src/training/ctc.cpp