On the problems of Compute_image_mean.exe in Caffe-windows

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.