Commit 093f709a authored by Davis King's avatar Davis King

Minor improvement to example

parent ab1575da
...@@ -67,7 +67,8 @@ std::vector<std::vector<string>> load_objects_list ( ...@@ -67,7 +67,8 @@ std::vector<std::vector<string>> load_objects_list (
for (auto img : subdir.get_files()) for (auto img : subdir.get_files())
imgs.push_back(img); imgs.push_back(img);
objects.push_back(imgs); if (imgs.size() != 0)
objects.push_back(imgs);
} }
return objects; return objects;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment