Definition at line 99 of file PrecomputeTask.h. References Execute(), Impala::CmdOptions::GetBool(), Impala::CmdOptions::GetInstance(), Impala::Core::Database::RawDataSet::GetLocator(), Impala::Core::Matrix::DistributedAccess::GetNrFeatures(), Impala::Core::Database::RawDataSet::GetSetName(), ILOG_ERROR, ILOG_INFO, and ILOG_VAR. Referenced by Impala::Core::ImageSet::ComputeKernelData::HandleDoneDir(), and Impala::Core::VideoSet::ComputeKernelData::HandleDoneFile(). 00103 { 00104 ILOG_VAR(Impala.Core.Training.PrecomputeTask.ComputeTestKernel); 00105 KernelMatrixLocator thisKerLoc(dstLoc, false, walkType, 00106 develSet->GetSetName(), model, 00107 kernelMatrixName, container); 00108 thisKerLoc.SetFeatureIndexCat(featureIndexCat); 00109 00110 bool override = CmdOptions::GetInstance().GetBool("override"); 00111 if (KernelMatrixRepository().Exists(thisKerLoc) && !override) 00112 { 00113 ILOG_INFO("Skipping, KernelData already exists: " << thisKerLoc); 00114 return; 00115 } 00116 00117 if (develKernel->GetNrFeatures() == 0) 00118 { 00119 ILOG_ERROR("No features"); 00120 return; 00121 } 00122 00123 FeatureLocator thisFeatLoc(dstLoc, false, false, walkType, 00124 "empty", container); 00125 FeatureLocator develFeatLoc(develSet->GetLocator(), false, true, "", 00126 "empty", ""); 00127 00128 PrecomputeTask* pt = new Training::PrecomputeTask 00129 (true, thisKerLoc, develKernel, thisFeatLoc, develFeatLoc); 00130 Execute(pt); 00131 }
Here is the call graph for this function:
|