ReadImageToCVMat strange error #3166

Closed
swamiviv opened this Issue Oct 7, 2015 · 6 comments

Comments

Projects
None yet
6 participants

swamiviv commented Oct 7, 2015

I am trying to train a deep network on a lot of data stored in a cluster. I have been training several networks successfully over the past weeks and suddenly now I get the following error:

E1007 17:11:25.214215   922 io.cpp:81] Could not open or find file /data/1285162/174_t6_06017.jpg
F1007 17:11:25.214344   922 image_data_layer.cpp:162] Check failed: cv_img.data Could not load /data/174_t6_06017.jpg

I had checked the following already:

** The file exists and is not corrupted
** I can read/display the file using a stand alone opencv code with imread (the same that caffe uses).

I am puzzled by this. Could anyone get what is happening here ? If it helps, I am using ImageDatalayer to feed the input. I tried to create a lmdb database with all my data, the same thing occured there - the same error occured for some images when lmdb was created.

Is your data placed under '/' folder? or you mean 'data/1285162/174_t6_06017.jpg'?

basuam commented Nov 21, 2015

I have the same error, I posted it recently here....
#3367

Apparently is not possible to work with images... something changed in Caffe

I have met the same problem too.

Is the above issue caused due to a problem in the file holding the image urls?

Yes 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

Contributor

seanbell commented Apr 24, 2016

Closing, since this seems to be resolved, and related to installation/library problems and not caffe.

seanbell closed this Apr 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment