Check failed: cv_img.data Could not load examples/images/cat.jpg
While running make runtest apparently it is not possible to load the images.
I'm running "make runtest" from the main folder "caffe-master" and the error is as follows...
I have installed CUDA 7.0, cuDNN-v3.0, the latest version of Caffe-master (downloaded two days ago) and the OS is RedHat 6.
Hope you can confirm that this is a BUG
[----------] 4 tests from ImageDataLayerTest/3, where TypeParam = caffe::GPUDevice
This error is found in other tests...
[ FAILED ] DBTest/0.TestSeekToFirst, where TypeParam = caffe::TypeLevelDB (211 ms) [ RUN ] DBTest/0.TestNext E1120 20:19:36.755816 5387 io.cpp:80] Could not open or find file examples/images/cat.jpg E1120 20:19:36.755985 5387 io.cpp:80] Could not open or find file examples/images/fish-bike.jpg
[ FAILED ] DBTest/0.TestKeyValue, where TypeParam = caffe::TypeLevelDB (185 ms) [ RUN ] DBTest/0.TestSeekToFirst E1120 20:19:36.519708 5387 io.cpp:80] Could not open or find file examples/images/cat.jpg E1120 20:19:36.519881 5387 io.cpp:80] Could not open or find file examples/images/fish-bike.jpg
I have met the same problem,,could you tell me how to solve it?Thank you!
I've met with this problem too, don't know how to handle
did any one find solution to the above issue
Is there a solution for this issue?
Hi all, It's because there is non-compatible version of libjpeg in the system. I reinstalled libjpeg module, and finally solved this problem. Just remind, try to test your libjpeg module first and make sure your libjpeg is OK.
@ylqfp, which operating system are you using? and how did u install this module? . Thanks for the help
Hi @jpsquare RHEL 6.5 santigo. Just download source from http://libjpeg.sourceforge.net/ and reinstall following its instructions.
Thanks @ylqfp, I resolved this issue by prepending the absolute path to the images in the file holding the image names. Thus the image urls could now be resolved by the opencv methods
Closing, since this seems to be resolved, and related to installation/library problems and not caffe.
I tried hardcoding the abolute path in include/caffe/test/test_caffe_main.hpp based on the suggestion from @jpsquare above, but I still got the could not load error message, even though the error message now included the full path to the file.
I got around this error by rebuilding OpenCV with the following cmake flags:
-DBUILD_JPEG=ON -DBUILD_PNG=ON -DBUILD_TIFF=ON -DBUILD_ZLIB=ON
so that it could build its own media i/o libraries and not depend on the one found in Anaconda's library path. I probably only needed the JPEG option to get around this error, but I just went ahead and did the others to be consistent.
Hope that helps someone.
how to hardcode the absolute path in include/caffe/test/test_caffe_main.hpp. Can you specify clearly. I did rebuild opencv with the above cmake.
Thanks!!!!!!!!!!!!!!!!1
I tried hardcoding the abolute path in
include/caffe/test/test_caffe_main.hppbased on the suggestion from @jpsquare above, but I still got the could not load error message, even though the error message now included the full path to the file.I got around this error by rebuilding OpenCV with the following cmake flags:
-DBUILD_JPEG=ON -DBUILD_PNG=ON -DBUILD_TIFF=ON -DBUILD_ZLIB=ONso that it could build its own media i/o libraries and not depend on the one found in Anaconda's library path. I probably only needed the JPEG option to get around this error, but I just went ahead and did the others to be consistent.
Hope that helps someone.
Thanks!!! I have solved that follow your solutions.