I want to use data from memory using python interface. Here is the relevant part of the train_val.prototxt file:
My solver.txt looks like this:
net: "/mnt/cifar100/bvlc_reference_caffenet/train_val.prototxt"
snapshot_prefix: "/mnt/cifar100/bvlc_reference_caffenet/snapshots/"
I have 4 data arrays, train (50000, 3, 32, 32), valid(10000, 3, 32, 32), y_train(50000,), y_valid( 10000,), loaded in memory, where I noted the dimensions of the arrays.
In some other post, I've seen an example that looks like this
solver = caffe.get_solver("/path2solver/solver.prototxt")
solver.net.set_input_arrays(data, labels)
But it's not clear to me how should I put train and valid data to solver, I've tried couple of combinations where I specified all 4 arrays, but none of them work. Assume you have my data, how would you do it?
If anyone could help me resolve this, I would greatly appreciate this, using the data layer from python is not well documented. Also if my dimensions are incorrect please correct me.