-
My setup:
Tried to use the RetinaNet as described here: https://keras.io/guides/keras_cv/object_detection_keras_cv/ Got the following error:
I have a data generator which returns two things:
It's even compatible with the visualisation function from the luketils module:
Please, please help me! I'm a newbie to CV with neural networks and I've been trying to apply object detection to my own dataset using TF/Keras, to no avail, for many weeks now, fighting through so much code that would all break eventually. I was super optimistic when I found the tutorial by Luke Wood, since it had been updated just last month.. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @gH2AX, I'm not from keras-cv team but i'm also trying to implement a RetinaNet. This is an example of one of my inputs (batch_size=1):
overview of shapes
I don't know if it's the correct input format but it's the only one I succeed to feed the model with.(batch_size>1 also works) |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your suggestion; at least, now I get a different error:
|
Beta Was this translation helpful? Give feedback.
-
I think I found the solution! So, I didn't understand that the inputs need to be strictly formatted as a Tensorflow dataset in a specific way (did I mention that I'm a beginner?). The issue was that in the tutorial you first apply a bunch of confusing transformations on the pascalvoc dataset, but I had my own data, and I tried to filter out only the information which would've been relevant to my case. And since visualizations from the luketils toolkit rendered correctly, I though I was on the right track. So here's my solution to all the newbies out there: Let's say you have the following data at hand:
And here's the magic:
Now feed this into your Keras_CV model, and you're good to go. |
Beta Was this translation helpful? Give feedback.
I think I found the solution!
So, I didn't understand that the inputs need to be strictly formatted as a Tensorflow dataset in a specific way (did I mention that I'm a beginner?). The issue was that in the tutorial you first apply a bunch of confusing transformations on the pascalvoc dataset, but I had my own data, and I tried to filter out only the information which would've been relevant to my case. And since visualizations from the luketils toolkit rendered correctly, I though I was on the right track. So here's my solution to all the newbies out there:
Let's say you have the following data at hand: