caffe icon indicating copy to clipboard operation
caffe copied to clipboard

ReadImageToCVMat strange error

Open swamiviv opened this issue 11 years ago • 6 comments

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.

swamiviv avatar Oct 07 '15 21:10 swamiviv

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

stanstarks avatar Nov 04 '15 04:11 stanstarks

I have the same error, I posted it recently here.... https://github.com/BVLC/caffe/issues/3367

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

basuam avatar Nov 21 '15 02:11 basuam

I have met the same problem too.

iridescent303 avatar Dec 16 '15 15:12 iridescent303

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

jpsquare avatar Apr 10 '16 16:04 jpsquare

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

jpsquare avatar Apr 14 '16 07:04 jpsquare

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

seanbell avatar Apr 24 '16 08:04 seanbell