caffe icon indicating copy to clipboard operation
caffe copied to clipboard

Solver.solve() interface raises error if the given blob is larger then a number.

Open erogol opened this issue 11 years ago • 5 comments

solver = caffe.SGDSolver(SOLVER_PYTHON_FILE)

solver.net.set_input_arrays(np.ascontiguousarray(train_img_blob, dtype=np.float32), np.ascontiguousarray(train_label_blob, dtype=np.float32)) solver.solve()

This is what I've done for training a network over python interface. Given train data blob is multiple of the batch size (32). This code works for train data blob size < 512, otherwise it gives this as an output

I0220 15:08:21.057770 4054 net.cpp:213] Network initialization done. I0220 15:08:21.057777 4054 net.cpp:214] Memory required for data: 556160 I0220 15:08:21.057915 4054 solver.cpp:42] Solver scaffolding done. Segmentation fault (core dumped)

I guess something wrong or missing from my humble side.

erogol avatar Feb 20 '15 13:02 erogol

I believe this should go to caffe-users -- this issues tracker is primarily for Caffe development discussion. Thanks!

rohrbach avatar Feb 22 '15 04:02 rohrbach

Yes, but I beleive so this is an development issue to track and nothing to do with the caffe-users

erogol avatar Feb 22 '15 12:02 erogol

This is actually a duplicate of #1470 -- no single blob can be larger than 2 GB given the current types.

shelhamer avatar Feb 22 '15 17:02 shelhamer

sorry @erogol for commenting/closing this incorrectly, but @shelhamer clarified it.

rohrbach avatar Feb 23 '15 01:02 rohrbach

Thanks for the clarification @shelhamer and np @rohrbach . Best :)

erogol avatar Feb 23 '15 12:02 erogol