Guanghan / ROLO

ROLO is short for Recurrent YOLO, aimed at simultaneous object detection and tracking
Apache License 2.0
879 stars 278 forks source link

ValueError: cannot reshape array of size 0 into shape (3,4102) #41

Open lahyeon opened 6 years ago

lahyeon commented 6 years ago

/ROLO$ python ./experiments/testing/ROLO_network_test_all.py -/home/lh/Downloads/MOT16-03.mp4 ROLO init Utils init self.cfgPath= Default: running ROLO test. Building ROLO graph... Loading complete!

('TESTING ROLO on video sequence: ', 'Human2', '') Loading complete!

Traceback (most recent call last): File "./experiments/testing/ROLO_network_test_all.py", line 275, in main(' ') File "./experiments/testing/ROLO_network_test_all.py", line 271, in main ROLO_TF(argvs) File "./experiments/testing/ROLO_network_test_all.py", line 94, in init self.ROLO(argvs) File "./experiments/testing/ROLO_network_test_all.py", line 266, in ROLO self.testing(x_path, y_path) File "./experiments/testing/ROLO_network_test_all.py", line 168, in testing batch_xs = self.rolo_utils.load_yolo_output_test(x_path, self.batch_size, self.num_steps, id) # [num_of_examples, num_input] (depth == 1) File "/home/lh/ROLO/utils/ROLO_utils.py", line 333, in load_yolo_output_test yolo_output_batch= np.reshape(yolo_output_batch, [batch_sizenum_steps, 4102]) File "/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 257, in reshape return _wrapfunc(a, 'reshape', newshape, order=order) File "/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 62, in _wrapfunc return _wrapit(obj, method, args, *kwds) File "/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 42, in _wrapit result = getattr(asarray(obj), method)(args, **kwds) ValueError: cannot reshape array of size 0 into shape (3,4102)

I have this error what could I do? :+1: @Guanghan