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