Bjoern Froehlich 12 жил өмнө
parent
commit
d84f7e3e29

+ 5 - 0
semseg/SemSegContextTree.cpp

@@ -1554,6 +1554,11 @@ void SemSegContextTree::semanticseg (CachedExample *ce, NICE::Image & segresult,
   {
     if(cndir != "")
     {
+      
+      std::vector< std::string > list;
+      StringTools::split (currentFile, '/', list);
+      string orgname = list.back();
+      
       ifstream infile ((cndir + "/" + orgname + ".dat").c_str());
       while (!infile.eof() && infile.good())
       {