The label has a variable length:



 TensorOverflow:

'image/object/class/label': tf.io.VarLenFeature(tf.int64),


So when you try to .batch the dataset it can’t pack the different sized tensors together.
You either want to use .padded_patch or .apply(tf.data.experimental.dense_to_ragged_batch(...))