Closed dsblank closed 6 years ago
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-17-d44d74edc612> in <module>() ----> 1 net.propagate("input", net.dataset.inputs[0]) ~/.local/lib/python3.6/site-packages/conx/network.py in propagate(self, input, batch_size, update_pictures, raw) 1479 outputs = self.model.predict(np.array(input), batch_size=batch_size) 1480 elif self.num_input_layers == 1: -> 1481 outputs = self.model.predict(np.array([input]), batch_size=batch_size) 1482 else: 1483 inputs = [np.array([x], "float32") for x in input] ~/.local/lib/python3.6/site-packages/keras/engine/training.py in predict(self, x, batch_size, verbose, steps) 1780 x = _standardize_input_data(x, self._feed_input_names, 1781 self._feed_input_shapes, -> 1782 check_batch_axis=False) 1783 if self.stateful: 1784 if x[0].shape[0] > batch_size and x[0].shape[0] % batch_size != 0: ~/.local/lib/python3.6/site-packages/keras/engine/training.py in _standardize_input_data(data, names, shapes, check_batch_axis, exception_prefix) 108 ': expected ' + names[i] + ' to have ' + 109 str(len(shape)) + ' dimensions, but got array ' --> 110 'with shape ' + str(data_shape)) 111 if not check_batch_axis: 112 data_shape = data_shape[1:] ValueError: Error when checking : expected input to have 4 dimensions, but got array with shape (1, 1)