在做人脸识别的时候,窗口每次都会卡住,也导入了之前训练好的数据,然后运行两次之后就变成这样了
ValueError: in user code:
D:\Python\lib\site-packages\keras\engine\training.py:1544 predict_function *
return step_function(self, iterator)
D:\Python\lib\site-packages\keras\engine\training.py:1527 run_step *
outputs = model.predict_step(data)
D:\Python\lib\site-packages\keras\engine\training.py:1500 predict_step *
return self(x, training=False)
D:\Python\lib\site-packages\keras\engine\base_layer.py:989 __call__ *
input_spec.assert_input_compatibility(self.input_spec, inputs, self.name)
D:\Python\lib\site-packages\keras\engine\input_spec.py:228 assert_input_compatibility *
raise ValueError('Input ' + str(input_index) + ' of layer ' +
ValueError: Input 0 of layer sequential_12 is incompatible with the layer: : expected min_ndim=4, found ndim=3. Full shape received: (None, 219, 3)