Johannes Ruehle %!s(int64=11) %!d(string=hai) anos
pai
achega
ef02d1aa52
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 );