You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ubuntu 24.04
Python 3.12.3
keras 3.7.0
keras-core 0.1.7
keras-cv 0.9.0
Following this example the data set visualizes/displays the bounding boxes properly. However the augmenter fails.
train_ds = train_ds.map(augmenter, num_parallel_calls=tf.data.AUTOTUNE)
It looks like your dataset is yielding tensors that have no shape (i.e. not even a rank), and that isn't supported by augmentation layers. Fix: make sure your dataset yields tensors with at least a defined rank and a define channel dimension. (e.g. (None, None, None, 3) would be ok).
Note that you can use set_shape to achieve this, if you know the shape of your tensors but TF doesn't.
Following this example the data set visualizes/displays the bounding boxes properly. However the augmenter fails.
train_ds = train_ds.map(augmenter, num_parallel_calls=tf.data.AUTOTUNE)
https://colab.research.google.com/github/keras-team/keras-io/blob/master/examples/vision/ipynb/yolov8.ipynb
The text was updated successfully, but these errors were encountered: