Minor improvement to example

This commit is contained in:
Davis King 2016-12-18 20:52:45 -05:00
parent ab1575da20
commit 093f709a9a

View File

@ -67,7 +67,8 @@ std::vector<std::vector<string>> load_objects_list (
for (auto img : subdir.get_files())
imgs.push_back(img);
objects.push_back(imgs);
if (imgs.size() != 0)
objects.push_back(imgs);
}
return objects;
}