Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Core::Training::Svm::CheckTestMode ( svm_problem *  problem  )  [inline, private]

Definition at line 322 of file Svm.h.

References Impala::CmdOptions::GetBool(), Impala::CmdOptions::GetInstance(), Impala::Core::Database::RawDataSet::GetLocator(), ILOG_INFO, and Impala::Core::VideoSet::MakeVideoSet().

Referenced by Train().

00323     {
00324         CmdOptions& options = CmdOptions::GetInstance();
00325         if (! options.GetBool("testMode"))
00326             return;
00327 
00328         VideoSet::VideoSet* vidSet =
00329             VideoSet::MakeVideoSet("trec2005fsd_try.txt");
00330         String filename = "anchor.problem.txt";
00331         Persistency::ModelLocator loc
00332             (vidSet->GetLocator(), "concepts.txt", "testmodel",
00333              "vissem_proto_annotation_nrScales_2_nrRects_130", "anchor");
00334         Persistency::SvmProblemRepository().Add(loc, problem);
00335         ILOG_INFO("TestMode, we're done");
00336         exit(0);
00337     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:21:20 2011 for ImpalaSrc by  doxygen 1.5.1