Bjoern Froehlich 13 anni fa
parent
commit
2196d38285
2 ha cambiato i file con 10 aggiunte e 1 eliminazioni
  1. 9 1
      progs/testSemanticSegmentation.cpp
  2. 1 0
      semseg/SemSegCsurka.cpp

+ 9 - 1
progs/testSemanticSegmentation.cpp

@@ -22,6 +22,8 @@
 #include <objrec-froehlichexp/semseg/SemSegRegionBased.h>
 #include <objrec-froehlichexp/semseg/SemSegRegionBased.h>
 #include <objrec-froehlichexp/semseg/SemSegContextTree.h>
 #include <objrec-froehlichexp/semseg/SemSegContextTree.h>
 
 
+#include <fast-hik/ResourceStatistics.h>
+
 #include <fstream>
 #include <fstream>
 
 
 
 
@@ -71,7 +73,9 @@ int main( int argc, char **argv )
   std::set_terminate( __gnu_cxx::__verbose_terminate_handler );
   std::set_terminate( __gnu_cxx::__verbose_terminate_handler );
 
 
   Config conf( argc, argv );
   Config conf( argc, argv );
-
+  
+  ResourceStatistics rs;
+  
   bool show_result = conf.gB( "debug", "show_results", false );
   bool show_result = conf.gB( "debug", "show_results", false );
 
 
   bool write_results = conf.gB( "debug", "write_results", false );
   bool write_results = conf.gB( "debug", "write_results", false );
@@ -229,6 +233,10 @@ int main( int argc, char **argv )
 
 
   pb.hide();
   pb.hide();
 
 
+  long maxMemory;
+  rs.getMaximumMemory(maxMemory);
+  cerr << "Maximum memory used: " << maxMemory << " KB" << endl;
+  
   double overall = 0.0;
   double overall = 0.0;
   double sumall = 0.0;
   double sumall = 0.0;
 
 

+ 1 - 0
semseg/SemSegCsurka.cpp

@@ -955,6 +955,7 @@ void SemSegCsurka::train ( const MultiDataset *md )
    cout << *examples[z].second.vec << endl;
    cout << *examples[z].second.vec << endl;
    getchar();
    getchar();
   }*/
   }*/
+
   if ( classifier != NULL )
   if ( classifier != NULL )
     classifier->train ( fp, examples );
     classifier->train ( fp, examples );
   else
   else