-
Dear kerasCV team, I recently open a discussion on your github, talking about my project of Boat detection. You advise me to contact you when I got problems. I am writing to you as I encountered an issue with my boat detection project while using your library. Specifically, when using my generator with the RetinaNet model, I encountered the following error: ValueError: Expected boxes to be a Tensor with a final dimension of 4. Instead, got boxes.shape=(None, None, None) To give you some background, I am working with a large dataset, and I am not able to load the entire dataset into memory. Therefore, I have implemented a generator. I found that when I take an output from my generator and feed it to the RetinaNet model directly, there is no problem. However, when I use my generator directly with the model, I encounter the aforementioned error. I am hoping that you could provide some guidance on how to overcome this issue. For your reference, I have included a sample of the generator's output. It returns a tuple of (images, labels), where the images are in the form of a TensorFlow tensor. I appreciate any help you could provide in resolving this issue. Best regards, generator output (images, labels) :
The getitem of the generator
Test lines:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @hugopi ! Is there any way you can convert your data pipeline to a tf.data pipeline as we do in https://keras.io/guides/keras_cv/object_detection_keras_cv/? With respect to the NaN loss I think I have this fixed in #1684 |
Beta Was this translation helpful? Give feedback.
Hey @hugopi ! Is there any way you can convert your data pipeline to a tf.data pipeline as we do in https://keras.io/guides/keras_cv/object_detection_keras_cv/?
With respect to the NaN loss I think I have this fixed in #1684