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

virtual void Impala::Core::Training::ApplyConcepts::NextContainer ( CString  container  )  [inline, virtual]

Definition at line 100 of file ApplyConcepts.h.

References Impala::Core::Table::Copy(), Impala::CmdOptions::GetInstance(), Impala::Process::MemoryInfo::GetUsageString(), ILOG_DEBUG, ILOG_INFO, Impala::Core::Training::ApplyConceptsHelper::LoadFeatures(), mConcepts, mFeatLoc, mHelper, mKernelDataOnly, mModelLoc, mSimSetLoc, Impala::Core::Training::ApplyConceptsHelper::Predict(), Impala::Persistency::ModelLocator::SetConcept(), Impala::Persistency::SimilarityTableSetLocator::SetContainer(), Impala::Persistency::FeatureLocator::SetContainer(), Impala::Core::Table::Table::Size(), Impala::Timer::SplitTimeStr(), and Impala::Core::Training::ApplyConceptsHelper::UnloadFeatures().

Referenced by Impala::Core::ImageSet::ApplyConcepts::HandleDoneDir(), Impala::Core::VideoSet::ApplyConcepts::HandleDoneFile(), Impala::Core::VideoSet::ApplyConcepts::HandleDoneWalk(), and Impala::Core::ImageSet::ApplyConcepts::HandleDoneWalk().

00101     {
00102         mFeatLoc.SetContainer(container);
00103         mSimSetLoc.SetContainer(container);
00104         if ((!CmdOptions::GetInstance().GetBool("override")) &&
00105             Persistency::SimilarityTableSetRepository().Exists(mSimSetLoc))
00106         {
00107             ILOG_INFO("SimilarityTableSet already exists, skipping");
00108             return;
00109         }
00110         ILOG_DEBUG("loading features: "<<Process::MemoryInfo::GetUsageString());
00111         FeatureTable* features = mHelper->LoadFeatures(mFeatLoc);
00112         if (mKernelDataOnly)
00113         {
00114             ILOG_INFO("KernelDataOnly so skipping real apply");
00115             return;
00116         }
00117 
00118         ILOG_DEBUG("done features: "<< Process::MemoryInfo::GetUsageString());
00119         Table::SimilarityTableSet simSet(mConcepts, features->Size());
00120         Core::Table::Copy(simSet.GetQuidTable(), features); // copy Quids only
00121 
00122         Timer timerTotal;
00123         for (int i=0 ; i<mConcepts.size() ; i++)
00124         {
00125             ILOG_INFO("concept " << i << " of " << mConcepts.size());
00126             Timer timerConcept;
00127             ModelLocator modelLoc = mModelLoc;
00128             modelLoc.SetConcept(mConcepts[i]);
00129             ILOG_INFO("model " << modelLoc);
00130             ILOG_DEBUG("pre-predict: "<< Process::MemoryInfo::GetUsageString());
00131             ScoreTable* scores = mHelper->Predict(modelLoc);
00132             simSet.SetSimTable(i, scores);
00133             delete scores;
00134             ILOG_DEBUG("post-predict: "<< Process::MemoryInfo::GetUsageString());
00135             simSet.ComputeRank(i, true);
00136             ILOG_INFO("time this concept = " << timerConcept.SplitTimeStr()
00137                       << ", total = " << timerTotal.SplitTimeStr());
00138         }
00139         ILOG_DEBUG("pre-save: "<< Process::MemoryInfo::GetUsageString());
00140         Persistency::SimilarityTableSetRepository().Add(mSimSetLoc, &simSet);
00141         ILOG_DEBUG("pre-unload: "<< Process::MemoryInfo::GetUsageString());
00142         mHelper->UnloadFeatures();
00143         ILOG_DEBUG("post-unload: "<< Process::MemoryInfo::GetUsageString());
00144     }

Here is the call graph for this function:


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