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

Misc Javascript points

 Nodejs can support multithreading through use of promises _ is the numeric separator for javascript, that means the numbers 10_000, 11.23_0...