Caffe Check failed:cv_img.data Could not load troubleshooting log

Source: Internet
Author: User

Today ran their own database made a problem, has been unable to load pictures, online search for a half a day without fruit, with Python Check that file is also completely exist. The next question is whether their own opencv have problems, but the compile time is not wrong Ah, now is a little confused.

Open Io.cpp, see the 80th line, that is, a check OpenCV read is normal, helpless.

Continue looking at the output log. I have output all the Caffe output to the file, so I can choose. So choose the path that cannot be found, and wonder how the last one has a space. This is not a file that is read in C + + stream. The space should be skipped. On the next thought, no, the blank character is not necessarily a space ah. Hurriedly with Gedit open own file, found the last line break is actually \ r \ n. No words, this is the line break for Windows. Replace all \ r \ n with the replacement, OK, problem solved.

Summarize:
In Windows edit TXT file Be sure to use notepad++ to see if the last line break is correct. The right talent can be put under Linux.

Related Article

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.