These two days have the interest to install the next caffe, feel this frame.
But in this process encountered a lot of problems, I have encountered problems and solutions to write down, easy for future generations to get started.
When the Compute_image_mean.exe is compiled, the situation occurs when the data transformation is performed.
Then, quickly go online to find relevant information.
See the following blog, about Leveldb's
http://blog.csdn.net/cywosp/article/details/20746879
There is a passage in it that says:
In version 1.15, if the Newiterator function was used to create the Leveldb::iterator object without the Delete object, the following error will be reported when the program exits:
Db/version_set.cc:806:leveldb::versionset::~versionset (): assertion ' Dummy_versions_.next_ = = &dummy_versions_ ' Failed.
Based on code analysis, the reason for the Assert failure here is primarily to prevent memory leaks.
Then, open the compiled source code (inside/tools/compute_image_mean.cpp)
Based on the blog's tips, I'll do a delete after creating the Lterator. Probably in the 70th line of the source code around the position.
++count; if (count% 10000 = = 0) { LOG (ERROR) << "processed" << count << "files."; } } Delete it; if (count% 10000! = 0) { LOG (ERROR) << "processed" << count << "files."; } for (int i = 0; i < sum_blob.data_size (); ++i) { sum_blob.set_data (i, Sum_blob.data (i)/count); }
Modify and then compile, and then you can run through the smooth.
On the problems of Compute_image_mean.exe in Caffe-windows