part_constellation_models
part_constellation_models copied to clipboard
Error using caffe_prepare_image (line 25) Subscript indices must either be real positive integers or logicals.
Hi,
I am trying to run training process by the following command.
start('basedir','/path/to/CUB_200_2011_dataset/','cnn_dir','./cnn_finetuning/vgg19/','imagedir','/path/to/CUB_200_2011_dataset/images');.
However, I got the error below:
Starting parallel pool (parpool) using the 'local' profile ... "/auto/matlab-2015b/toolbox/distcomp/bin/util/psname.sh" GLNXA64 1074: Aborted
Image 11788: 200.Common_Yellowthroat/Common_Yellowthroat_0055_190967.jpg
Error using caffe_prepare_image (line 25)
Subscript indices must either be real positive integers or logicals.
Error in caffe_gradients (line 39)
im = caffe_prepare_image(im,mean,width);
Error in parts_locs_from_grads (line 25)
parfor (i = 1:size(imagelist,1), opts.parfor_arg)
Error in start (line 162)
part_locs = parts_locs_from_grads(opts);
I generated the txt files by following the tutorial. Have you ever run into this problem?
I didn't have this problem. You can try replacing the parfor loops by regular for loops for easier debugging.