From d1a5905c61c12c86e4bf9e2b1174d00d8a16fb6e Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Sun, 01 Oct 2017 15:21:27 +0000
Subject: [PATCH] Fixed of using backslash (\) in paths to cfg for training

---
 src/yolo_console_dll.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/yolo_console_dll.cpp b/src/yolo_console_dll.cpp
index 7618a09..ffa5c45 100644
--- a/src/yolo_console_dll.cpp
+++ b/src/yolo_console_dll.cpp
@@ -70,7 +70,7 @@
 	std::ifstream file(filename);
 	std::vector<std::string> file_lines;
 	if (!file.is_open()) return file_lines;
-	for(std::string line; file >> line;) file_lines.push_back(line);
+	for(std::string line; getline(file, line);) file_lines.push_back(line);
 	std::cout << "object names loaded \n";
 	return file_lines;
 }

--
Gitblit v1.10.0