Wednesday, May 12, 2021

ValueError: Input 0 of layer random_flip_6 is incompatible with the layer: expected ndim=4, found ndim=3. Full shape received: (None, 180, 180)



62 tf.keras.layers.experimental.preprocessing.RandomFlip("horizontal" , input_shape = (180,180)), 63 tf.keras.layers.experimental.preprocessing.RandomRotation(0.2), ---> 64 tf.keras.layers.experimental.preprocessing.RandomZoom(0.2) 65 ])


Corrected working code:


*-> 62 tf.keras.layers.experimental.preprocessing.RandomFlip("horizontal" , input_shape = (180,180,3)),😀 63 tf.keras.layers.experimental.preprocessing.RandomRotation(0.2), ---> 64 tf.keras.layers.experimental.preprocessing.RandomZoom(0.2) 65 ])

No comments:

Post a Comment

How to check local and global angular versions

 Use the command ng version (or ng v ) to find the version of Angular CLI in the current folder. Run it outside of the Angular project, to f...