Definition at line 43 of file mainTestTrainingRegression.cpp. References Impala::CmdOptions::AddOption(), Impala::CmdOptions::GetArg(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::Initialise(), MakeVideoSet(), Impala::CmdOptions::ParseArgs(), Impala::QUID_CLASS_FRAME, Impala::Core::DataFactory::ServeDistributedAccess(), Impala::Core::Training::Tester::Test(), and Impala::Core::Training::Tester::TestMpi(). Referenced by CrossValidate(), main(), mainCrossValidate(), mainTrainModel(), and TrainModel(). 00044 { 00045 CmdOptions& options = CmdOptions::GetInstance(); 00046 options.Initialise(false, false, true); 00047 options.AddOption(0, "create-reference", "", ""); 00048 String usage = String() + "inputpath referencepath outputpath\n" + 00049 "All arguments are paths to a videoset (only videosets for now). " + 00050 "Please note that reference- and outputset don't have to be proper " + 00051 "sets. Their index is not read but taken from inputset instead. " + 00052 "The paths do not necessarily have to be distinct. In order to create "+ 00053 "the reference set, pass the same path as 2nd and 3rd argument.\n" + 00054 "In the inputset the following should be present:\n" + 00055 " 1. \"VideoSet/test.txt\"\n"+ 00056 " 2. \"Annotation/test.txt\"\n"+ 00057 " 3. vissem_proto_annotation_nrScales_2_nrRects_130 feature data for" + 00058 " the videos defined in 1.\n"; 00059 if (!options.ParseArgs(argc, argv, usage, 3)) 00060 return 1; 00061 00062 Core::VideoSet::VideoSet* input = MakeVideoSet(options.GetArg(0)); 00063 Core::VideoSet::VideoSet* reference = MakeVideoSet(options.GetArg(1), input); 00064 Core::VideoSet::VideoSet* output = MakeVideoSet(options.GetArg(2), input); 00065 Core::Feature::FeatureDefinition feat 00066 ("vissem_proto_annotation_nrScales_2_nrRects_130"); 00067 Core::DataFactory* factory = 00068 new Core::DataFactory(input, input->GetDatabase(), QUID_CLASS_FRAME, 00069 "test.txt", "test", feat, "testsingle", 0, 1); 00070 if(Link::Mpi::MyId() == 0) 00071 { 00072 Core::Training::Tester tester(factory, reference, output); 00073 if(Link::Mpi::NrProcs() > 1) 00074 tester.TestMpi(); 00075 else 00076 tester.Test(); 00077 } 00078 else 00079 factory->ServeDistributedAccess(); 00080 00081 delete factory; 00082 delete output; 00083 delete reference; 00084 delete input; 00085 return 0; 00086 }
Here is the call graph for this function:
|