Sfoglia il codice sorgente

fix for relative config path loading

Johannes Ruehle 11 anni fa
parent
commit
50cda307c7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      semseg/SemSegNovelty.cpp

+ 1 - 1
semseg/SemSegNovelty.cpp

@@ -132,7 +132,7 @@ void SemSegNovelty::initFromConfig(const Config* conf, const string _confSection
   //write uncertainty results in the same folder as done for the segmentation results
   //write uncertainty results in the same folder as done for the segmentation results
   resultdir = conf->gS("debug", "resultdir", "result");
   resultdir = conf->gS("debug", "resultdir", "result");
   cache = conf->gS ( "cache", "root", "" );
   cache = conf->gS ( "cache", "root", "" );
-  
+  cache = conf->getAbsoluteFilenameRelativeToThisConfig(cache);
 
 
   this->findMaximumUncert = conf->gB(_confSection, "findMaximumUncert", true);
   this->findMaximumUncert = conf->gB(_confSection, "findMaximumUncert", true);
   this->whs = conf->gI ( _confSection, "window_size", 10 );
   this->whs = conf->gI ( _confSection, "window_size", 10 );