Hi guys..
I am kinda new to this community, and this framework..
My idea is to building a classifier which is capable of recognizing object(fishes) which provided in the training set "n01440764".
I have until now created two folders containing the training data, and validation data.
I have then resized the images to be 256x256.
According to the tutorial is the next step to compute the image mean using "./examples/imagenet/make_imagenet_mean.sh"
Problem is though when i try to run the script, it terminates with the error message:
user@ubuntu:~/caffe/examples/imagenet$ ./make_imagenet_mean.sh terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted (core dumped) Done.
this is how the script looks like on my computer.
#!/usr/bin/env sh
# Compute the mean image from the imagenet training lmdb
# N.B. this is available in data/ilsvrc12
EXAMPLE=/home/user/caffe/examples/imagenet
DATA=/home/user/caffe/data/ilsvrc12
TOOLS=/home/user/caffe/build/tools
$TOOLS/compute_image_mean $EXAMPLE/ilsvrc12_train_lmdb \
$DATA/imagenet_mean.binaryproto
echo "Done."
I have no idea why get that message, it seems like one those messages which you get when the code is stuck in an infinite loop or something like that..
I would be very happy if someone could clarify what I am doing wrong..