Johannes Ruehle před 11 roky
rodič
revize
ef02d1aa52
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      semseg/SemSegNovelty.cpp

+ 1 - 1
semseg/SemSegNovelty.cpp

@@ -732,9 +732,9 @@ void SemSegNovelty::semanticseg ( CachedExample *ce, NICE::Image & segresult, NI
           {
               if(mask(x,y) == maxUncertRegion)
               {
+                  int classnoTmp = labels(x,y);
                   if ( forbidden_classesActiveLearning.find(classnoTmp) != forbidden_classesActiveLearning.end() )
                       continue;
-                  int classnoTmp = labels(x,y);
                   Example t_Example(NULL, x, y);
                   t_Example.vec = NULL;
                   t_Example.svec = new SparseVector ( featdim );