当我想编译程序时--cvpr_2012_ffd。你可以从http://blog.gimiatlicho.webfactional.com/?page_id=38得到它。我根据它的README编译程序。当我运行这个程序时,我遇到了一些错误。错误是这个
图像 pathdata/index_random_subset.txt 到 treesdata/trees_ffd/ 的图像路径路径到 treesdata/trees_headpose/tree_10 要加载。反序列化期间的存档异常:无效签名是树:data/trees_headpose/tree_000.txt 段错误
我发现这个错误出现在文件中:tree.hpp 像这样的代码
224 //check if file exist
225 std::ifstream ifs(path.c_str());
226 if (!ifs) {
227 std::cout << "Tree not found " << path << std::endl;
228 return false;
229 }
230
231 //load tree
232 try {
233 // boost::archive::binary_iarchive ia(ifs);
234 boost::archive::binary_iarchive ia(ifs);
235 ia >> *t;
236 } catch (boost::archive::archive_exception& ex) {
237 std::cout << "Archive Exception during deserializing:" << std::endl;
238 std::cout << ex.what() << std::endl;
239 std::cout << "it was tree: " << path << std::endl;
240 } catch (int e) {
241 std::cout << path << "EXCEPTION " << e << std::endl;
242
243 }
错误发生在行:234
有人遇到这个错误吗?如何解决这个问题?谢谢