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

Uses of LangGraph

  LangGraph is used to build stateful, reliable, and complex multi-agent applications, offering benefits like persistence, human-in-the-loop...