Skip to content
Snippets Groups Projects
Commit 2407c165 authored by Franck Dary's avatar Franck Dary
Browse files

Corrected a bug where decode was possible even without training

parent 3308c406
No related branches found
No related tags found
No related merge requests found
......@@ -152,6 +152,12 @@ void Classifier::initClassifier(Config & config)
return;
}
if (!trainMode)
{
fprintf(stderr, "ERROR (%s) : could not find model \'%s\'. Maybe training was stopped before any model could be saved. Aborting.\n", ERRINFO, modelFilename.c_str());
exit(1);
}
nn.reset(createNeuralNetwork());
Dict::initDicts(nn->getModel(), name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment