提交 45fb7dde 编写于 作者: R rays

Fixed regression of issue #644 again!

上级 f4f66f8f
......@@ -1268,7 +1268,7 @@ STRING LSTMTrainer::UpdateErrorGraph(int iteration, double error_rate,
if (error_rate > best_error_rate_
&& iteration < best_iteration_ + kErrorGraphInterval) {
// Too soon to record a new point.
if (tester != NULL) {
if (tester != NULL && !worst_model_data_.empty()) {
mgr_.OverwriteEntry(TESSDATA_LSTM, &worst_model_data_[0],
worst_model_data_.size());
return tester->Run(worst_iteration_, NULL, mgr_, CurrentTrainingStage());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册