The data blob had num = 2 so I set cfg.TRAIN.IMS_PER_BATCh to 1, and the problem is gone now. But I'm faced with another problem later. The error message follows :
I0830 14:01:57.355235 17807 net.cpp:1023] Copying source layer relu7
I0830 14:01:57.355264 17807 net.cpp:1023] Copying source layer drop7
I0830 14:01:57.355271 17807 net.cpp:1020] Ignoring source layer fc8
I0830 14:01:57.355276 17807 net.cpp:1020] Ignoring source layer prob
Solving...
I0830 14:01:57.466291 17807 net.cpp:602] ## : net_input_blobs_.size() : 0
Traceback (most recent call last):
File "./tools/train_net_e2e.py", line 114, in <module>
max_iters=args.max_iters)
File "/home/ckim/Neuro/
py-faster-rcnn.org/tools/../lib/fast_rcnn/train.py", line 160, in train_net
model_paths = sw.train_model(max_iters)
File "/home/ckim/Neuro/
py-faster-rcnn.org/tools/../lib/fast_rcnn/train.py", line 101, in train_model
self.solver.step(1)
File "/home/ckim/Neuro/
py-faster-rcnn.org/tools/../lib/roi_data_layer/layer.py", line 145, in forward
blobs = self._get_next_minibatch()
File "/home/ckim/Neuro/
py-faster-rcnn.org/tools/../lib/roi_data_layer/layer.py", line 63, in _get_next_minibatch
return get_minibatch(minibatch_db, self._num_classes)
File "/home/ckim/Neuro/
py-faster-rcnn.org/tools/../lib/roi_data_layer/minibatch.py", line 55, in get_minibatch
num_classes)
File "/home/ckim/Neuro/
py-faster-rcnn.org/tools/../lib/roi_data_layer/minibatch.py", line 125, in _sample_rois
roidb['bbox_targets'][keep_inds, :], num_classes)
KeyError: 'bbox_targets'