"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/training/lstmtraining.cpp" between
tesseract-5.0.0-rc2.tar.gz and tesseract-5.0.0-rc3.tar.gz

About: Tesseract is an Optical Character Recognition (OCR) engine. Release candidate.

lstmtraining.cpp  (tesseract-5.0.0-rc2):lstmtraining.cpp  (tesseract-5.0.0-rc3)
skipping to change at line 230 skipping to change at line 230
for (int target_iteration = iteration + kNumPagesPerBatch; for (int target_iteration = iteration + kNumPagesPerBatch;
iteration < target_iteration && iteration < max_iterations; iteration < target_iteration && iteration < max_iterations;
iteration = trainer.training_iteration()) { iteration = trainer.training_iteration()) {
trainer.TrainOnLine(&trainer, false); trainer.TrainOnLine(&trainer, false);
} }
std::string log_str; std::string log_str;
trainer.MaintainCheckpoints(tester_callback, log_str); trainer.MaintainCheckpoints(tester_callback, log_str);
tprintf("%s\n", log_str.c_str()); tprintf("%s\n", log_str.c_str());
} while (trainer.best_error_rate() > FLAGS_target_error_rate && } while (trainer.best_error_rate() > FLAGS_target_error_rate &&
(trainer.training_iteration() < max_iterations)); (trainer.training_iteration() < max_iterations));
tprintf("Finished! Error rate = %g\n", trainer.best_error_rate()); tprintf("Finished! Selected model with minimal training error rate (BCER) = %g
\n",
trainer.best_error_rate());
return EXIT_SUCCESS; return EXIT_SUCCESS;
} /* main */ } /* main */
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)