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.