I was attempting to reproduce the results of your excellent paper on my dataset, and set up the environment as mentioned in the guide. However, on running the given experiment with ./build/default/exp/images/images 1 caffe throws the error
image_data_layer.cpp:328] Check failed: num_images <= batch_size (10 vs. 1) The number of added images 10 must be no greater than the batch size 1
This happens both on the using the provided prototxt file as well as on my model. Is the value 10 hardcoded somewhere? I figured that vector<cv::Mat>& images being passed to AddImagesAndLabels in image_data_layer.cpp is of size 10, but cannot determine from where the function is being called.
I had not properly modified the Parameters passed to caffe in dl_images.hpp which was causing the error. But now running on GPU mode gives segmentation fault, whereas the experiment runs fine in CPU mode.
I was attempting to reproduce the results of your excellent paper on my dataset, and set up the environment as mentioned in the guide. However, on running the given experiment with
./build/default/exp/images/images 1
caffe throws the errorimage_data_layer.cpp:328] Check failed: num_images <= batch_size (10 vs. 1) The number of added images 10 must be no greater than the batch size 1
This happens both on the using the provided prototxt file as well as on my model. Is the value
10
hardcoded somewhere? I figured thatvector<cv::Mat>& images
being passed toAddImagesAndLabels
in image_data_layer.cpp is of size 10, but cannot determine from where the function is being called.labels.txt: