对流神经网络中的输入和输出形状

时间:2020-09-21 04:48:44

标签: python image

ValueError: Input 0 of layer sequential_30 is incompatible with the layer: : expected min_ndim=4, found ndim=3. Full shape received: [None, None, None]

1 个答案:

答案 0 :(得分:0)

首先,您提供的详细信息很少。根据您提供的详细信息,我已经解释说您正在尝试将维度3的numpy array传递给CNN LayerCNN Layer仅接受4-dimensional numpy arrays,但是您已将3-dimensional numpy array作为输入。为了解决此问题,将阵列重塑为4D阵列。如果您提供您的代码,我将能够为您提供您必须使用的确切行。

相关问题