Hey,
I am on the second assignment and thought it would be cool to use the CNN architecture from the C4_W2_Lab_4_FashionMNIST_CNNAutoEncoder lab. The following changes to the code made sense to me:
- Everywhere where there is a “2D” change to “3D” since the new data is in colour.
- Change the input dimensions to be (32,32,3), again because images are now colour and have 32x32 dimensions.
- Change kernel size everywhere to be (3,3,1), because images are 3D.
If I call model.summary()
on this I get: ValueError: Input 0 of layer "conv3d" is incompatible with the layer: expected min_ndim=5, found ndim=4. Full shape received: (None, 32, 32, 3)
Which makes me think somewhere the dimensions are going wrong.
I thought maybe the issue was in MaxPooling3D
and UpSampling3D
, so I changed their pool_size
and size
parameters to (2,2,1)
This still results in an error, albeit a slightly different one: ValueError: Input 0 of layer "conv3d_2" is incompatible with the layer: expected min_ndim=5, found ndim=4. Full shape received: (None, 32, 32, 3)
So now the error has moved from conv3d
to conv3d_2
and I’m not sure how to make use of that information.
If anybody could help me figure out where this is going wrong it would be greatly appreciated!