Hello,
I am new in Caffe. When I run create_imagenet.sh there is a error information
Check failed: data.size() == data_size (562500 vs. 540000) Incorrect data field size 562500
Both wront in creating train leveldb and val leveldb
everytime I run create_imagenet.sh, first I will remove directories ilsvrc12_train_leveldb and ilsvrc12_val_leveldb
and I use chmod 777 change train and val image database.
But still get this wrong information, is there any method I can try?
Thank you
You must convert all the images into a same size before runing create_imgaenet.sh.
Hi, I met the same issue, but I set the RESIZE = true in the create_imagenet.sh, which should resize the image by using the OpenCV
yes, I set RESIZE=true in create_imagenet.sh but it shows "Incorrect data field size"
So maybe it's something happen in OpeCV !? I didn't install well in OpenCV!?
Hi, There are some issues in create_imagenet.sh, please firstly find:
ilsvrc12_train_leveldb 1
$RESIZE_HEIGHT $RESIZE_WIDTH
and let them be:
ilsvrc12_train_leveldb 1 leveldb \
$RESIZE_HEIGHT $RESIZE_WIDTH
Then it is OK.
It works !!!!
Thank you very much
I stuck here in couple weeks...
Hello, I am facing same issue in the process of training Imagenet. @mxzhao Could you please elaborate your solution. I could not find those lines in create_imagenet.sh file. Thanks :)
thank you very much
Most helpful comment
You must convert all the images into a same size before runing create_imgaenet.sh.