CV模型的预处理中的问题:警告:tensorflow:模型是用形状构造的(无,5,5,2048)

时间:2020-10-08 20:16:13

标签: python tensorflow opencv keras computer-vision

我正在使用经过训练的计算机视觉模型对犬种进行分类,现在当我尝试预测图像时会显示错误和警告,请有人帮助我

模型github link

警告

WARNING:tensorflow:Model was constructed with shape (None, 5, 5, 2048) for input Tensor("global_average_pooling2d_23_input:0", shape=(None, 5, 5, 2048), dtype=float32), but it was called on an input with incompatible shape (None, 183, 275, 3).

错误

ValueError: Input 0 of layer dense_22 is incompatible with the layer: expected axis -1 of input shape to have value 2048 but received input with shape [None, 3]

0 个答案:

没有答案