adilmoujahid / deeplearning-cats-dogs-tutorial

Source code for blog post: A Practical Introduction to Deep Learning with Caffe and Python
http://adilmoujahid.com/posts/2016/06/introduction-deep-learning-python-caffe/
183 stars 136 forks source link

terminate called after throwing an instance of 'std: :bad_alloc' what(): std: :bad_alloc Aborted #8

Closed Poomathi closed 7 years ago

Poomathi commented 7 years ago

I am new to this framework. I am able to Data preparation step by creating the lmdb files. While generating image mean, received below error. Please help

/opt/caffe/bin/compute_image_mean -backend=lmdb /home/pduraisamy/test/Deeplearning-cats-dogs-tutorial/input/train_lmdb /home/pduraisamy/test/Deeplearning-cats-dogs-tutorial/input/mean.binaryproto

terminate called after throwing an instance of 'std: :bad_alloc' what(): std: :bad_alloc Aborted

What am I doing wrong here? thanks for your help

Poomathi commented 7 years ago

Ignore this. I am able to run the mean successfully. Data preparation step didn't run properly since train_data didn't fetch the images due to location issue. Once I correct that, able to get the mean file successfully.