mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-20 15:59:11 +08:00
lstmtrainer: Fix comment
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
83ad8a18de
commit
ef3bf98cc1
@ -925,7 +925,7 @@ Trainability LSTMTrainer::PrepareForBackward(const ImageData *trainingdata,
|
|||||||
upside_down = randomizer_.SignedRand(1.0) > 0.0;
|
upside_down = randomizer_.SignedRand(1.0) > 0.0;
|
||||||
if (upside_down) {
|
if (upside_down) {
|
||||||
// Modify the truth labels to match the rotation:
|
// Modify the truth labels to match the rotation:
|
||||||
// Apart from space and null, increment the label. This is changes the
|
// Apart from space and null, increment the label. This changes the
|
||||||
// script-id to the same script-id but upside-down.
|
// script-id to the same script-id but upside-down.
|
||||||
// The labels need to be reversed in order, as the first is now the last.
|
// The labels need to be reversed in order, as the first is now the last.
|
||||||
for (auto truth_label : truth_labels) {
|
for (auto truth_label : truth_labels) {
|
||||||
|
Loading…
Reference in New Issue
Block a user