在做人脸识别的时候,窗口每次都会卡住,也导入了之前训练好的数据,然后运行两次之后就变成这样了
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)
你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答
本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。
因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。