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

 using Microsoft.AspNetCore.Mvc; using System.Xml.Linq; using System.Xml.XPath; //<table class="common-table medium js-table js-stre...