caffe icon indicating copy to clipboard operation
caffe copied to clipboard

file writing issue for computing image mean

Open abhishek-sen opened this issue 12 years ago • 3 comments

I was trying to run compute_image_mean.bin on custom dataset.

Got the following error :

E0504 14:23:09.778326 2025406848 compute_image_mean.cpp:71] Processed 10000 files. E0504 14:23:39.848585 2025406848 compute_image_mean.cpp:71] Processed 20000 files. E0504 14:24:20.074129 2025406848 compute_image_mean.cpp:71] Processed 30000 files. E0504 14:25:36.838109 2025406848 compute_image_mean.cpp:75] Processed 35398 files. F0504 14:25:37.100920 2025406848 io.cpp:69] Check failed: proto.SerializeToOstream(&output) *** Check failure stack trace: *** @ 0x10a6637e0 google::LogMessage::Fail() @ 0x10a663099 google::LogMessage::SendToLog() @ 0x10a663525 google::LogMessage::Flush() @ 0x10a665e89 google::LogMessageFatal::~LogMessageFatal() @ 0x10a663ad1 google::LogMessageFatal::~LogMessageFatal() @ 0x1032bbb5b caffe::WriteProtoToBinaryFile() @ 0x1032a8fe2 main @ 0x7fff90bfa7e1 start @ 0x3 (unknown)

./make_customData_mean.sh: line 8: 1011 Abort trap: 6 $TOOLS/compute_image_mean.bin customData_train_leveldb $DATA/customData_mean.binaryproto

Can someone suggest how to go about debugging this ?

abhishek-sen avatar May 04 '14 19:05 abhishek-sen

I have a vague memory of seeing this error when the number of open files approached the system limit. Check your configuration for file descriptors and leveldb. @sguada does that sound right?

shelhamer avatar May 22 '14 08:05 shelhamer

Or it's simply a path that isn't writeable because a directory doesn't exist or the like. Try an absolute path.

shelhamer avatar May 24 '14 16:05 shelhamer

I had this error because one of the variables set in make_image_mean.sh was set to a non-existent path.

HoldenCaulfieldRye avatar Aug 17 '14 17:08 HoldenCaulfieldRye