Skip to content
Advertisement

Tag: tensorflow

How to fix failed assertion `output channels should be divisible by group’ when trying to fit the model in Keras?

I’m trying to use ImageDataGenerator() for my image datasets. Here is my image augmentation code: Then use that plug into my model: Use EarlyStopping: Compile and Fit the model: That is when the code crash, and gives this error message. I try to change the output neurons but that doesn’t work. I don’t know what to do anymore. Please help

‘cannot compute Pack as input #1(zero-based) was expected to be a float tensor but is a int32 tensor [Op:Pack] name: packed’. Error with tf.squeeze

I’m trying to display images of a dataset on a plot with their predictions. But I have this error: cannot compute Pack as input #1(zero-based) was expected to be a float tensor but is a int32 tensor [Op:Pack] name: packed This is the code in which I plot: I have the error on second line, on the tf.squeeze function. I

Convert tfrecords to image

I found a training dataset which is a set of tfrecords files,im trying to convert them into images but with no results,is it possible to convert them to images ? Answer To find out what is inside a tf.record use tf.data.TFRecordDataset and tf.train.Example: To parse the records, use tf.data.TFRecordDataset with tf.io.parse_single_example and tf.io.parse_tensor: Also check the source code of Satellite

Advertisement